Revision 1741
Added by Dietmar about 12 years ago
branches/2.8.x/wb/modules/droplets/htt/overview_tool.htt | ||
---|---|---|
1 |
<!-- BEGIN main_block --> |
|
2 |
<div class="droplets"> |
|
3 |
|
|
4 |
<h4 style="margin: 0; border-bottom: 1px solid #DDD; padding-bottom: 5px;"> |
|
5 |
<a href="{ADMINTOOL_LINK}" title="{HEADING_ADMINISTRATION_TOOLS}">{HEADING_ADMINISTRATION_TOOLS}</a> |
|
6 |
<span> » </span> |
|
7 |
<a href="{MODULE_EDIT_LINK}" title="">Droplet Overview</a> |
|
8 |
</h4> |
|
9 |
|
|
10 |
<table summary="" > |
|
11 |
<tbody> |
|
12 |
<tr> |
|
13 |
<td> |
|
14 |
<button class="add" type="button" name="add_droplet" onclick="javascript:window.location='<?php echo WB_URL; ?>/modules/droplets/add_droplet.php';">{TEXT_ADD} {DR_TEXT_DROPLETS}</button> |
|
15 |
</td> |
|
16 |
<td> |
|
17 |
<a href="#" onclick="javascript:window.open('<?php echo WB_URL; ?>/modules/droplets/readme/{DR_TEXT_README}','helpwindow','width=700,height=550,directories=no,location=no,menubar=no,scrollbars=yes,status=no,toolbar=no,resizable=yes');">{DR_TEXT_HELP}</a> |
|
18 |
<br /><br /> |
|
19 |
<a href="#" onclick="javascript:window.location='<?php echo WB_URL; ?>/modules/droplets/backup_droplets.php?id=<?php echo $admin->getIDKEY(999); ?>'">{DR_TEXT_BACKUP}</a> |
|
20 |
</td> |
|
21 |
</tr> |
|
22 |
</tbody> |
|
23 |
</table> |
|
24 |
|
|
25 |
<table summary="" > |
|
26 |
<thead> |
|
27 |
<tr> |
|
28 |
<td style="width: 3%;"></td> |
|
29 |
<td style="width: 21%;">{TEXT_NAME}</td> |
|
30 |
<td style="width: 68%;">{TEXT_DESCRIPTION}</td> |
|
31 |
<td style="width: 4%;">{TEXT_ACTIVE}</td> |
|
32 |
<td style="width: 3%;"></td> |
|
33 |
</tr> |
|
34 |
</thead> |
|
35 |
<tfoot> |
|
36 |
<tr> |
|
37 |
<td>{PAGINATION}</td> |
|
38 |
</tr> |
|
39 |
</tfoot> |
|
40 |
<tbody> |
|
41 |
<!-- BEGIN loop_droplet_block --> |
|
42 |
<tr class="row_{ROWBIT}" > |
|
43 |
<td > |
|
44 |
<a href="{WB_URL}/modules/droplets/modify_droplet.php?droplet_id={DROPLET_IDKEY}" title="TEXT_MODIFY"> |
|
45 |
<img src="{THEME_URL}/images/modify_16.png" alt="Modify" /> |
|
46 |
</a> |
|
47 |
</td> |
|
48 |
<td > |
|
49 |
<a href="{WB_URL}/modules/droplets/modify_droplet.php?droplet_id={DROPLET_IDKEY}" class="tooltip"> |
|
50 |
<img src="{WB_URL}/modules/droplets/img/{STATUS_ICON}" title="" alt=""/>{DROPLET_NAME}{COMMENTS} |
|
51 |
</a> |
|
52 |
</td> |
|
53 |
<td > |
|
54 |
<small>{DESCRIPTION}</small> |
|
55 |
</td> |
|
56 |
<td> |
|
57 |
<strong>{DROPLET_ACTIVE}</strong> |
|
58 |
</td> |
|
59 |
<td > |
|
60 |
<a href="javascript:confirm_link('{TEXT_ARE_YOU_SURE}','{WB_URL}/modules/droplets/delete_droplet.php?droplet_id={DROPLET_IDKEY}');" title="{TEXT_DELETE}"> |
|
61 |
<img src="{THEME_URL}/images/delete_16.png" alt="{TEXT_DELETE}" /> |
|
62 |
</a> |
|
63 |
</td> |
|
64 |
</tr> |
|
65 |
<!-- END loop_droplet_block --> |
|
66 |
<tr> |
|
67 |
<td>{NO_DROPLET_FOUND}</td> |
|
68 |
</tr> |
|
69 |
</tbody> |
|
70 |
</table> |
|
71 |
</div> |
|
72 |
<!-- END main_block --> |
|
0 | 73 |
branches/2.8.x/wb/modules/droplets/tool.php | ||
---|---|---|
3 | 3 |
* |
4 | 4 |
* @category module |
5 | 5 |
* @package droplet |
6 |
* @author Ruud Eisinga (Ruud) John (PCWacht) |
|
7 |
* @author WebsiteBaker Project |
|
8 |
* @copyright 2004-2009, Ryan Djurovich |
|
9 |
* @copyright 2009-2011, Website Baker Org. e.V. |
|
6 |
* @author Ruud Eisinga (Ruud) John (PCWacht),WebsiteBaker Project |
|
7 |
* @copyright 2009-2012, WebsiteBaker Org. e.V. |
|
10 | 8 |
* @link http://www.websitebaker2.org/ |
11 | 9 |
* @license http://www.gnu.org/licenses/gpl.html |
12 | 10 |
* @platform WebsiteBaker 2.8.x |
... | ... | |
18 | 16 |
*/ |
19 | 17 |
/* -------------------------------------------------------- */ |
20 | 18 |
// Must include code to stop this file being accessed directly |
21 |
if(!defined('WB_PATH')) {
|
|
19 |
if(!defined('WB_URL')) {
|
|
22 | 20 |
|
23 | 21 |
require_once(dirname(dirname(dirname(__FILE__))).'/framework/globalExceptionHandler.php'); |
24 | 22 |
throw new IllegalFileException(); |
... | ... | |
66 | 64 |
if(is_writeable(dirname(WB_PATH.$temp_dir))) { |
67 | 65 |
rm_full_dir ( WB_PATH.$temp_dir ); |
68 | 66 |
} |
69 |
?><br /> |
|
67 |
?><div class="droplets" style="margin-top: -6px; border-top: 1px solid #DDD;"> |
|
68 |
|
|
70 | 69 |
<table summary="" cellpadding="0" cellspacing="0" border="0" width="100%"> |
71 | 70 |
<tr> |
72 | 71 |
<td valign="bottom" width="50%"> |
... | ... | |
160 | 159 |
} |
161 | 160 |
?> |
162 | 161 |
</table> |
162 |
</div> |
|
163 | 163 |
<?php |
164 | 164 |
} |
165 | 165 |
|
branches/2.8.x/wb/modules/droplets/modify_droplet.php | ||
---|---|---|
3 | 3 |
* |
4 | 4 |
* @category module |
5 | 5 |
* @package droplet |
6 |
* @author Ruud Eisinga (Ruud) John (PCWacht) |
|
7 |
* @author WebsiteBaker Project |
|
8 |
* @copyright 2004-2009, Ryan Djurovich |
|
9 |
* @copyright 2009-2011, Website Baker Org. e.V. |
|
6 |
* @author Ruud Eisinga (Ruud) John (PCWacht),WebsiteBaker Project |
|
7 |
* @copyright 2009-2012, Website Baker Org. e.V. |
|
10 | 8 |
* @link http://www.websitebaker2.org/ |
11 | 9 |
* @license http://www.gnu.org/licenses/gpl.html |
12 | 10 |
* @platform WebsiteBaker 2.8.x |
... | ... | |
64 | 62 |
$fetch_content = $query_content->fetchRow(); |
65 | 63 |
$content = (htmlspecialchars($fetch_content['code'])); |
66 | 64 |
?> |
65 |
<div class="droplets" style="margin-top: 6px;"> |
|
67 | 66 |
<h4 style="margin: 0; border-bottom: 1px solid #DDD; padding-bottom: 5px;"> |
68 | 67 |
<a href="<?php echo $admintool_link;?>" title="<?php echo $HEADING['ADMINISTRATION_TOOLS']; ?>"><?php echo $HEADING['ADMINISTRATION_TOOLS']; ?></a> |
69 |
->
|
|
70 |
<a href="<?php echo $module_edit_link;?>" title="<?php echo $sOverviewDroplets ?>" alt="<?php echo $sOverviewDroplets ?>">Droplet Edit</a>
|
|
68 |
<span> » </span>
|
|
69 |
<a href="<?php echo $module_edit_link;?>" title="<?php echo $sOverviewDroplets ?>" alt="<?php echo $sOverviewDroplets ?>">Droplet Overview</a>
|
|
71 | 70 |
</h4> |
72 | 71 |
<br /> |
73 | 72 |
<form name="modify" action="<?php echo WB_URL; ?>/modules/droplets/save_droplet.php" method="post" style="margin: 0;"> |
... | ... | |
95 | 94 |
<td class="setting_name" width="60px"> |
96 | 95 |
<?php echo $TEXT['ACTIVE']; ?>: |
97 | 96 |
</td> |
98 |
<td>
|
|
97 |
<td> |
|
99 | 98 |
<input type="radio" name="active" id="active_true" value="1" <?php if($fetch_content['active'] == 1) { echo ' checked="checked"'; } ?> /> |
100 | 99 |
<a href="#" onclick="javascript: document.getElementById('active_true').checked = true;"> |
101 | 100 |
<label><?php echo $TEXT['YES']; ?></label> |
... | ... | |
114 | 113 |
<td class="setting_name" width="60px"> |
115 | 114 |
<?php echo $TEXT['ADMIN']; ?>: |
116 | 115 |
</td> |
117 |
<td>
|
|
118 |
<?php echo $DR_TEXT['ADMIN_EDIT']; ?>
|
|
116 |
<td> |
|
117 |
<?php echo $DR_TEXT['ADMIN_EDIT']; ?> |
|
119 | 118 |
<input type="radio" name="admin_edit" id="admin_edit_true" value="1" <?php if($fetch_content['admin_edit'] == 1) { echo ' checked="checked"'; } ?> /> |
120 | 119 |
<a href="#" onclick="javascript: document.getElementById('admin_edit_true').checked = true;"> |
121 | 120 |
<label><?php echo $TEXT['YES']; ?></label> |
... | ... | |
124 | 123 |
<a href="#" onclick="javascript: document.getElementById('admin_edit_false').checked = true;"> |
125 | 124 |
<label><?php echo $TEXT['NO']; ?></label> |
126 | 125 |
</a> |
127 |
|
|
126 |
|
|
128 | 127 |
<?php echo $DR_TEXT['ADMIN_VIEW']; ?>: |
129 | 128 |
<input type="radio" name="admin_view" id="admin_view_true" value="1" <?php if($fetch_content['admin_view'] == 1) { echo ' checked="checked"'; } ?> /> |
130 | 129 |
<a href="#" onclick="javascript: document.getElementById('admin_view_true').checked = true;"> |
... | ... | |
145 | 144 |
</td> |
146 | 145 |
</tr> |
147 | 146 |
<tr> |
148 |
<td colspan="2">
|
|
147 |
<td colspan="2"> |
|
149 | 148 |
</td> |
150 | 149 |
</tr> |
151 | 150 |
<tr> |
... | ... | |
155 | 154 |
</td> |
156 | 155 |
</tr> |
157 | 156 |
<tr> |
158 |
<td colspan="2">
|
|
157 |
<td colspan="2"> |
|
159 | 158 |
</td> |
160 | 159 |
</tr> |
161 | 160 |
</table> |
... | ... | |
178 | 177 |
</tr> |
179 | 178 |
</table> |
180 | 179 |
</form> |
180 |
</div> |
|
181 | 181 |
<?php |
182 | 182 |
|
183 | 183 |
// Print admin footer |
branches/2.8.x/wb/modules/droplets/backup_droplets.php | ||
---|---|---|
35 | 35 |
} |
36 | 36 |
|
37 | 37 |
?> |
38 |
<div class="droplets" style="margin-top: 6px;"> |
|
38 | 39 |
<h4 style="margin: 0; border-bottom: 1px solid #DDD; padding-bottom: 5px;"> |
39 | 40 |
<a href="<?php echo $admintool_link;?>" title="<?php echo $HEADING['ADMINISTRATION_TOOLS']; ?>"><?php echo $HEADING['ADMINISTRATION_TOOLS']; ?></a> |
40 |
->
|
|
41 |
<a href="<?php echo $module_edit_link;?>" title="<?php echo $sOverviewDroplets ?>" alt="<?php echo $sOverviewDroplets ?>">Droplet Edit</a>
|
|
41 |
<span> » </span>
|
|
42 |
<a href="<?php echo $module_edit_link;?>" title="<?php echo $sOverviewDroplets ?>" alt="<?php echo $sOverviewDroplets ?>">Droplet Overview</a>
|
|
42 | 43 |
</h4> |
43 | 44 |
<?php |
44 | 45 |
|
... | ... | |
104 | 105 |
else { |
105 | 106 |
echo '<br /><br />Backup not created - <a href="'.$module_edit_link.'">'.$TEXT['BACK'].'</a>'; |
106 | 107 |
} |
107 |
|
|
108 |
echo '</div>'; |
|
108 | 109 |
$admin->print_footer(); |
Also available in: Unified diff
! Preparing Separation of code and HTML in Droplets