Changeset 154 for trunk/bin/module_maker/skel
- Timestamp:
- Jun 8, 2006 5:36:10 AM (18 years ago)
- Location:
- trunk/bin/module_maker/skel
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bin/module_maker/skel/adm_list.ihtml
r136 r154 8 8 <br /> 9 9 10 <input type="text" class="sc-small" size="20" name="search_query" value="<?php echo getFormData('search_query'); ?>" title="<?php echo oTxt(_("Fields searched: <##>%SEARCH_FIELDS%.")); ?>" />11 <select name="filter_ <##>">12 <?php // printSelectForm(' <##>_tbl', "CONCAT(<##>_id, '—', city, '—', title)", '<##>_id', getFormData('filter_<##>'), array('Any <##>'), 'ORDER BY <##>ASC'); ?>10 <input type="text" class="sc-small" size="20" name="search_query" value="<?php echo getFormData('search_query'); ?>" title="<?php echo oTxt(_("Fields searched: __///__ %SEARCH_FIELDS%.")); ?>" /> 11 <select name="filter___///__"> 12 <?php // printSelectForm('__///___tbl', "CONCAT(__///___id, '—', city, '—', title)", '__///___id', getFormData('filter___///__'), array('Any __///__'), 'ORDER BY __///__ ASC'); ?> 13 13 </select> 14 14 <input type="submit" value="<?php echo _("Search"); ?>" /> … … 28 28 <?php for ($i = 0; $i <= $page->last_item - $page->first_item && $page->total_items > 0; $i++) { ?> 29 29 <tr> 30 <td class="sc-padleft sc-nowrap"><a title="<?php printf(_("Edit %s"), oTxt($list[$i][' <##>'])) ?>" href="<?php echo $app->oHREF($_SERVER['PHP_SELF'] . '?op=edit&%PRIMARY_KEY%=' . $list[$i]['%PRIMARY_KEY%']); ?>"><img src="/admin/_widgets/edit.gif" alt="Edit" width="14" height="18" border="0"></a> </td>31 <td class="sc-padleft sc-nowrap"><a title="<?php printf(_("Versions of %s"), oTxt($list[$i][' <##>'])) ?>" href="<?php echo $app->oHREF('/admin/versions.php?record_table=%DB_TBL%&record_key=%PRIMARY_KEY%&boomerang=true&record_val=' . $list[$i]['%PRIMARY_KEY%']); ?>"><img src="/admin/_widgets/subcategory.gif" alt="" width="18" height="14" border="0" /></a> </td>30 <td class="sc-padleft sc-nowrap"><a title="<?php printf(_("Edit %s"), oTxt($list[$i]['__///__'])) ?>" href="<?php echo $app->oHREF($_SERVER['PHP_SELF'] . '?op=edit&%PRIMARY_KEY%=' . $list[$i]['%PRIMARY_KEY%']); ?>"><img src="/admin/_widgets/edit.gif" alt="Edit" width="14" height="18" border="0"></a> </td> 31 <td class="sc-padleft sc-nowrap"><a title="<?php printf(_("Versions of %s"), oTxt($list[$i]['__///__'])) ?>" href="<?php echo $app->oHREF('/admin/versions.php?record_table=%DB_TBL%&record_key=%PRIMARY_KEY%&boomerang=true&record_val=' . $list[$i]['%PRIMARY_KEY%']); ?>"><img src="/admin/_widgets/subcategory.gif" alt="" width="18" height="14" border="0" /></a> </td> 32 32 %ADM_LIST_ROWS% 33 <td class="sc-padleft sc-nowrap" align="right"><a title="<?php printf(_("Delete %s"), oTxt($list[$i][' <##>'])) ?>" href="<?php echo $app->oHREF($_SERVER['PHP_SELF'] . "?op=del&%PRIMARY_KEY%=" . $list[$i]['%PRIMARY_KEY%']); ?>" onClick="javascript:return confirm('<?php printf(_("Are you sure you want to delete the record %s? This action is permanent and cannot be undone."), oTxt($list[$i]['<##>'])) ?>')"><img src="/admin/_widgets/delete.gif" alt="Delete" width="16" height="17" border="0"></a> </td>33 <td class="sc-padleft sc-nowrap" align="right"><a title="<?php printf(_("Delete %s"), oTxt($list[$i]['__///__'])) ?>" href="<?php echo $app->oHREF($_SERVER['PHP_SELF'] . "?op=del&%PRIMARY_KEY%=" . $list[$i]['%PRIMARY_KEY%']); ?>" onClick="javascript:return confirm('<?php printf(_("Are you sure you want to delete the record %s? This action is permanent and cannot be undone."), oTxt($list[$i]['__///__'])) ?>')"><img src="/admin/_widgets/delete.gif" alt="Delete" width="16" height="17" border="0"></a> </td> 34 34 </tr> 35 35 <?php } ?> -
trunk/bin/module_maker/skel/admin.php
r153 r154 50 50 // Search limiters retain their values between page requests. 51 51 $app->carryQuery('search_query'); 52 $app->carryQuery('filter_ <##>');52 $app->carryQuery('filter___///__'); 53 53 %ADMIN_UPLOAD_CONFIG% 54 54 /******************************************************************** … … 235 235 236 236 // Lock this record. 237 $lock->set('%DB_TBL%', '%PRIMARY_KEY%', $id, $frm[' <##>']);237 $lock->set('%DB_TBL%', '%PRIMARY_KEY%', $id, $frm['__///__']); 238 238 239 239 // Set misc values for the form. … … 268 268 // Get the information for this object. 269 269 $qid = $db->query(" 270 SELECT <##>270 SELECT __///__ 271 271 FROM %DB_TBL% 272 272 WHERE %PRIMARY_KEY% = '" . $db->escapeString($id) . "' … … 301 301 // Create version. 302 302 $version = Version::getInstance($GLOBALS['auth']); 303 $version->create('%DB_TBL%', '%PRIMARY_KEY%', $last_insert_id, $frm[' <##>']);304 305 $app->raiseMsg(sprintf(_("The %ITEM_TITLE% <em>%s</em> has been added."), $frm[' <##>']), MSG_SUCCESS, __FILE__, __LINE__);303 $version->create('%DB_TBL%', '%PRIMARY_KEY%', $last_insert_id, $frm['__///__']); 304 305 $app->raiseMsg(sprintf(_("The %ITEM_TITLE% <em>%s</em> has been added."), $frm['__///__']), MSG_SUCCESS, __FILE__, __LINE__); 306 306 307 307 return $last_insert_id; … … 326 326 // Create version. 327 327 $version = Version::getInstance($GLOBALS['auth']); 328 $version->create('%DB_TBL%', '%PRIMARY_KEY%', $frm['%PRIMARY_KEY%'], $frm[' <##>']);329 330 $app->raiseMsg(sprintf(_("The %ITEM_TITLE% <em>%s</em> has been updated."), $frm[' <##>']), MSG_SUCCESS, __FILE__, __LINE__);328 $version->create('%DB_TBL%', '%PRIMARY_KEY%', $frm['%PRIMARY_KEY%'], $frm['__///__']); 329 330 $app->raiseMsg(sprintf(_("The %ITEM_TITLE% <em>%s</em> has been updated."), $frm['__///__']), MSG_SUCCESS, __FILE__, __LINE__); 331 331 332 332 // Unlock record. … … 352 352 } 353 353 354 if (getFormData('filter_ <##>', false)) {354 if (getFormData('filter___///__', false)) { 355 355 // Limit by filter. 356 $where_clause .= (empty($where_clause) ? 'WHERE' : 'AND') . " <##> = '" . $db->escapeString(getFormData('filter_<##>')) . "'";356 $where_clause .= (empty($where_clause) ? 'WHERE' : 'AND') . " __///__ = '" . $db->escapeString(getFormData('filter___///__')) . "'"; 357 357 } 358 358 -
trunk/bin/module_maker/skel/public.ihtml
r136 r154 1 1 <p><?php echo nl2br(fancyTxt(oTxt($item['content'], true))); ?></p> 2 <p><em><?php echo sprintf(_("Published %s"), date($app->getParam('date_format'), strtotime($item[' <##>']))); ?></em></p>2 <p><em><?php echo sprintf(_("Published %s"), date($app->getParam('date_format'), strtotime($item['__///__']))); ?></em></p> 3 3 4 4 <!-- -
trunk/bin/module_maker/skel/public.php
r143 r154 38 38 WHERE %PRIMARY_KEY% = '" . $db->escapeString(getFormData('%PRIMARY_KEY%')) . "' 39 39 AND publish = 'true' 40 <##>AND (publish_date <= CURDATE() OR publish_date = '0000-00-00')41 <##>AND (expire_date > CURDATE() OR expire_date = '0000-00-00')40 __///__AND (publish_date <= CURDATE() OR publish_date = '0000-00-00') 41 __///__AND (expire_date > CURDATE() OR expire_date = '0000-00-00') 42 42 "); 43 43 if (!$item = mysql_fetch_assoc($qid)) { … … 54 54 55 55 // Set title and main template. 56 $nav->addPage($item[' <##>']);56 $nav->addPage($item['__///__']); 57 57 $main_template = '%PUBLIC_DETAIL_TEMPLATE%'; 58 58 -
trunk/bin/module_maker/skel/public_list.ihtml
r136 r154 10 10 <?php } ?> 11 11 <p> 12 <em><?php echo date($app->getParam('date_format'), strtotime($%NAME_SINGULAR%_list[$i][' <##>'])); ?></em> — <?php echo nl2br(fancyTxt(oTxt($%NAME_SINGULAR%_list[$i]['summary'], true))); ?>12 <em><?php echo date($app->getParam('date_format'), strtotime($%NAME_SINGULAR%_list[$i]['__///__'])); ?></em> — <?php echo nl2br(fancyTxt(oTxt($%NAME_SINGULAR%_list[$i]['summary'], true))); ?> 13 13 14 14 <?php if (strlen(trim($%NAME_SINGULAR%_list[$i]['content'])) > 0) { // Link only if content is available. ?>
Note: See TracChangeset
for help on using the changeset viewer.