some changes to be compatible with seek3r new template-system

output is not longer print, but $GLOBALS['phpgw']->template->set_var('phpgw_body',$content);
This commit is contained in:
Ralf Becker 2002-06-01 14:40:30 +00:00
parent aa2e71c35e
commit 9be495246f
4 changed files with 148 additions and 162 deletions

View File

@ -35,7 +35,6 @@
function uicategories() function uicategories()
{ {
$this->bo = CreateObject('admin.bocategories'); $this->bo = CreateObject('admin.bocategories');
$this->template = $GLOBALS['phpgw']->template;
$this->nextmatchs = CreateObject('phpgwapi.nextmatchs'); $this->nextmatchs = CreateObject('phpgwapi.nextmatchs');
$this->start = $this->bo->start; $this->start = $this->bo->start;
@ -78,19 +77,19 @@
function set_langs() function set_langs()
{ {
$this->template->set_var('th_bg',$GLOBALS['phpgw_info']['theme']['th_bg']); $GLOBALS['phpgw']->template->set_var('th_bg',$GLOBALS['phpgw_info']['theme']['th_bg']);
$this->template->set_var('lang_save',lang('Save')); $GLOBALS['phpgw']->template->set_var('lang_save',lang('Save'));
$this->template->set_var('lang_search',lang('Search')); $GLOBALS['phpgw']->template->set_var('lang_search',lang('Search'));
$this->template->set_var('lang_sub',lang('Add sub')); $GLOBALS['phpgw']->template->set_var('lang_sub',lang('Add sub'));
$this->template->set_var('lang_edit',lang('Edit')); $GLOBALS['phpgw']->template->set_var('lang_edit',lang('Edit'));
$this->template->set_var('lang_delete',lang('Delete')); $GLOBALS['phpgw']->template->set_var('lang_delete',lang('Delete'));
$this->template->set_var('lang_parent',lang('Parent category')); $GLOBALS['phpgw']->template->set_var('lang_parent',lang('Parent category'));
$this->template->set_var('lang_none',lang('None')); $GLOBALS['phpgw']->template->set_var('lang_none',lang('None'));
$this->template->set_var('lang_name',lang('Name')); $GLOBALS['phpgw']->template->set_var('lang_name',lang('Name'));
$this->template->set_var('lang_descr',lang('Description')); $GLOBALS['phpgw']->template->set_var('lang_descr',lang('Description'));
$this->template->set_var('lang_add',lang('Add')); $GLOBALS['phpgw']->template->set_var('lang_add',lang('Add'));
$this->template->set_var('lang_reset',lang('Clear Form')); $GLOBALS['phpgw']->template->set_var('lang_reset',lang('Clear Form'));
$this->template->set_var('lang_done',lang('Done')); $GLOBALS['phpgw']->template->set_var('lang_done',lang('Done'));
} }
function index() function index()
@ -99,8 +98,9 @@
$GLOBALS['phpgw']->common->phpgw_header(); $GLOBALS['phpgw']->common->phpgw_header();
$this->template->set_file(array('cat_list_t' => 'listcats.tpl')); $GLOBALS['phpgw']->template->set_file(array('cat_list_t' => 'listcats.tpl'));
$this->template->set_block('cat_list_t','cat_list','list'); $GLOBALS['phpgw']->template->set_block('cat_list_t','cat_list');
$GLOBALS['phpgw']->template->set_block('cat_list_t','cat_row');
$this->set_langs(); $this->set_langs();
@ -111,19 +111,19 @@
'global_cats' => $global_cats 'global_cats' => $global_cats
); );
$this->template->set_var('lang_action',lang('Category list')); $GLOBALS['phpgw']->template->set_var('lang_action',lang('Category list'));
if ($GLOBALS['appname']) if ($GLOBALS['appname'])
{ {
$this->template->set_var('title_categories',lang($GLOBALS['appname']) . ' ' . lang('global categories')); $GLOBALS['phpgw']->template->set_var('title_categories',lang($GLOBALS['appname']) . ' ' . lang('global categories'));
} }
else else
{ {
$this->template->set_var('title_categories',lang('Global categories')); $GLOBALS['phpgw']->template->set_var('title_categories',lang('Global categories'));
} }
$this->template->set_var('query',$this->query); $GLOBALS['phpgw']->template->set_var('query',$this->query);
$this->template->set_var('actionurl',$GLOBALS['phpgw']->link('/index.php',$link_data)); $GLOBALS['phpgw']->template->set_var('actionurl',$GLOBALS['phpgw']->link('/index.php',$link_data));
$this->template->set_var('doneurl',$GLOBALS['phpgw']->link('/admin/index.php')); $GLOBALS['phpgw']->template->set_var('doneurl',$GLOBALS['phpgw']->link('/admin/index.php'));
if(!$start) if(!$start)
{ {
@ -139,18 +139,18 @@
$left = $this->nextmatchs->left('/index.php',$this->start,$this->bo->cats->total_records,$link_data); $left = $this->nextmatchs->left('/index.php',$this->start,$this->bo->cats->total_records,$link_data);
$right = $this->nextmatchs->right('/index.php',$this->start,$this->bo->cats->total_records,$link_data); $right = $this->nextmatchs->right('/index.php',$this->start,$this->bo->cats->total_records,$link_data);
$this->template->set_var('left',$left); $GLOBALS['phpgw']->template->set_var('left',$left);
$this->template->set_var('right',$right); $GLOBALS['phpgw']->template->set_var('right',$right);
$this->template->set_var('lang_showing',$this->nextmatchs->show_hits($this->bo->cats->total_records,$this->start)); $GLOBALS['phpgw']->template->set_var('lang_showing',$this->nextmatchs->show_hits($this->bo->cats->total_records,$this->start));
$this->template->set_var('sort_name',$this->nextmatchs->show_sort_order($this->sort,'cat_name',$this->order,'/index.php',lang('Name'),$link_data)); $GLOBALS['phpgw']->template->set_var('sort_name',$this->nextmatchs->show_sort_order($this->sort,'cat_name',$this->order,'/index.php',lang('Name'),$link_data));
$this->template->set_var('sort_description',$this->nextmatchs->show_sort_order($this->sort,'cat_description',$this->order,'/index.php',lang('Description'),$link_data)); $GLOBALS['phpgw']->template->set_var('sort_description',$this->nextmatchs->show_sort_order($this->sort,'cat_description',$this->order,'/index.php',lang('Description'),$link_data));
for ($i=0;$i<count($categories);$i++) for ($i=0;$i<count($categories);$i++)
{ {
$tr_color = $this->nextmatchs->alternate_row_color($tr_color); $tr_color = $this->nextmatchs->alternate_row_color($tr_color);
$this->template->set_var(tr_color,$tr_color); $GLOBALS['phpgw']->template->set_var(tr_color,$tr_color);
$id = $categories[$i]['id']; $id = $categories[$i]['id'];
$level = $categories[$i]['level']; $level = $categories[$i]['level'];
@ -181,7 +181,7 @@
$appendix = ''; $appendix = '';
} }
$this->template->set_var(array $GLOBALS['phpgw']->template->set_var(array
( (
'name' => $cat_name . $appendix, 'name' => $cat_name . $appendix,
'descr' => $descr 'descr' => $descr
@ -189,8 +189,8 @@
$link_data['menuaction'] = 'admin.uicategories.add'; $link_data['menuaction'] = 'admin.uicategories.add';
$link_data['cat_parent'] = $id; $link_data['cat_parent'] = $id;
$this->template->set_var('add_sub',$GLOBALS['phpgw']->link('/index.php',$link_data)); $GLOBALS['phpgw']->template->set_var('add_sub',$GLOBALS['phpgw']->link('/index.php',$link_data));
$this->template->set_var('lang_sub_entry',lang('Add sub')); $GLOBALS['phpgw']->template->set_var('lang_sub_entry',lang('Add sub'));
if ($GLOBALS['appname'] && $categories[$i]['app_name'] == $GLOBALS['appname']) if ($GLOBALS['appname'] && $categories[$i]['app_name'] == $GLOBALS['appname'])
{ {
@ -209,29 +209,29 @@
{ {
$link_data['cat_id'] = $id; $link_data['cat_id'] = $id;
$link_data['menuaction'] = 'admin.uicategories.edit'; $link_data['menuaction'] = 'admin.uicategories.edit';
$this->template->set_var('edit',$GLOBALS['phpgw']->link('/index.php',$link_data)); $GLOBALS['phpgw']->template->set_var('edit',$GLOBALS['phpgw']->link('/index.php',$link_data));
$this->template->set_var('lang_edit_entry',lang('Edit')); $GLOBALS['phpgw']->template->set_var('lang_edit_entry',lang('Edit'));
$link_data['menuaction'] = 'admin.uicategories.delete'; $link_data['menuaction'] = 'admin.uicategories.delete';
$this->template->set_var('delete',$GLOBALS['phpgw']->link('/index.php',$link_data)); $GLOBALS['phpgw']->template->set_var('delete',$GLOBALS['phpgw']->link('/index.php',$link_data));
$this->template->set_var('lang_delete_entry',lang('Delete')); $GLOBALS['phpgw']->template->set_var('lang_delete_entry',lang('Delete'));
} }
else else
{ {
$this->template->set_var('edit',''); $GLOBALS['phpgw']->template->set_var('edit','');
$this->template->set_var('lang_edit_entry','&nbsp;'); $GLOBALS['phpgw']->template->set_var('lang_edit_entry','&nbsp;');
$this->template->set_var('delete',''); $GLOBALS['phpgw']->template->set_var('delete','');
$this->template->set_var('lang_delete_entry','&nbsp;'); $GLOBALS['phpgw']->template->set_var('lang_delete_entry','&nbsp;');
} }
$this->template->fp('list','cat_list',True); $GLOBALS['phpgw']->template->fp('rows','cat_row',True);
} }
$link_data['menuaction'] = 'admin.uicategories.add'; $link_data['menuaction'] = 'admin.uicategories.add';
$link_data['cat_parent'] = ''; $link_data['cat_parent'] = '';
$this->template->set_var('add_action',$GLOBALS['phpgw']->link('/index.php',$link_data)); $GLOBALS['phpgw']->template->set_var('add_action',$GLOBALS['phpgw']->link('/index.php',$link_data));
$this->save_sessiondata(); $this->save_sessiondata();
$this->template->pfp('out','cat_list_t',True); $GLOBALS['phpgw']->template->fp('phpgw_body','cat_list',True);
} }
function add() function add()
@ -255,19 +255,20 @@
$cat_name = $GLOBALS['HTTP_POST_VARS']['cat_name']; $cat_name = $GLOBALS['HTTP_POST_VARS']['cat_name'];
$cat_description = $GLOBALS['HTTP_POST_VARS']['cat_description']; $cat_description = $GLOBALS['HTTP_POST_VARS']['cat_description'];
$this->template->set_file(array('form' => 'category_form.tpl')); $GLOBALS['phpgw']->template->set_file(array('cat_form' => 'category_form.tpl'));
$this->template->set_block('form','add','addhandle'); $GLOBALS['phpgw']->template->set_block('cat_form','add');
$this->template->set_block('form','edit','edithandle'); $GLOBALS['phpgw']->template->set_block('cat_form','edit');
$GLOBALS['phpgw']->template->set_block('cat_form','form');
$this->template->set_var('doneurl',$GLOBALS['phpgw']->link('/index.php',$link_data)); $GLOBALS['phpgw']->template->set_var('doneurl',$GLOBALS['phpgw']->link('/index.php',$link_data));
if ($GLOBALS['appname']) if ($GLOBALS['appname'])
{ {
$this->template->set_var('title_categories',lang('Add global category for x',lang($GLOBALS['appname']))); $GLOBALS['phpgw']->template->set_var('title_categories',lang('Add global category for x',lang($GLOBALS['appname'])));
} }
else else
{ {
$this->template->set_var('title_categories',lang('Add global category')); $GLOBALS['phpgw']->template->set_var('title_categories',lang('Add global category'));
} }
if ($new_parent) if ($new_parent)
@ -288,28 +289,26 @@
$error = $this->bo->check_values($values); $error = $this->bo->check_values($values);
if (is_array($error)) if (is_array($error))
{ {
$this->template->set_var('message',$GLOBALS['phpgw']->common->error_list($error)); $GLOBALS['phpgw']->template->set_var('message',$GLOBALS['phpgw']->common->error_list($error));
} }
else else
{ {
$this->bo->save_cat($values); $this->bo->save_cat($values);
$this->template->set_var('message',lang('Category x has been added !', $cat_name)); $GLOBALS['phpgw']->template->set_var('message',lang('Category x has been added !', $cat_name));
} }
} }
$link_data['menuaction'] = 'admin.uicategories.add'; $link_data['menuaction'] = 'admin.uicategories.add';
$this->template->set_var('actionurl',$GLOBALS['phpgw']->link('/index.php',$link_data)); $GLOBALS['phpgw']->template->set_var('actionurl',$GLOBALS['phpgw']->link('/index.php',$link_data));
$this->template->set_var('category_list',$this->bo->formatted_list(array('select' => 'select','all' => 'all','cat_parent' => $cat_parent, $GLOBALS['phpgw']->template->set_var('category_list',$this->bo->formatted_list(array('select' => 'select','all' => 'all','cat_parent' => $cat_parent,
'global_cats' => $global_cats))); 'global_cats' => $global_cats)));
$this->template->set_var('cat_name',$cat_name);
$this->template->set_var('cat_description',$cat_description);
$this->template->set_var('edithandle',''); $GLOBALS['phpgw']->template->set_var('cat_name',$cat_name);
$this->template->set_var('addhandle',''); $GLOBALS['phpgw']->template->set_var('cat_description',$cat_description);
$this->template->pfp('out','form');
$this->template->pfp('addhandle','add'); $GLOBALS['phpgw']->template->parse('buttons','add');
$GLOBALS['phpgw']->template->fp('phpgw_body','form');
} }
function edit() function edit()
@ -338,13 +337,15 @@
$cat_name = $GLOBALS['HTTP_POST_VARS']['cat_name']; $cat_name = $GLOBALS['HTTP_POST_VARS']['cat_name'];
$cat_description = $GLOBALS['HTTP_POST_VARS']['cat_description']; $cat_description = $GLOBALS['HTTP_POST_VARS']['cat_description'];
$this->template->set_file(array('form' => 'category_form.tpl')); $GLOBALS['phpgw']->template->set_file(array('cat_form' => 'category_form.tpl'));
$this->template->set_block('form','add','addhandle'); $GLOBALS['phpgw']->template->set_block('cat_form','add');
$this->template->set_block('form','edit','edithandle'); $GLOBALS['phpgw']->template->set_block('cat_form','edit');
$GLOBALS['phpgw']->template->set_block('cat_form','form');
$hidden_vars = '<input type="hidden" name="cat_id" value="' . $this->cat_id . '">' . "\n"; $hidden_vars = '<input type="hidden" name="cat_id" value="' . $this->cat_id . '">' . "\n";
$this->template->set_var('hidden_vars',$hidden_vars); $GLOBALS['phpgw']->template->set_var('hidden_vars',$hidden_vars);
$this->template->set_var('doneurl',$GLOBALS['phpgw']->link('/index.php',$link_data)); $GLOBALS['phpgw']->template->set_var('doneurl',$GLOBALS['phpgw']->link('/index.php',$link_data));
if ($new_parent) if ($new_parent)
{ {
@ -365,12 +366,12 @@
$error = $this->bo->check_values($values); $error = $this->bo->check_values($values);
if (is_array($error)) if (is_array($error))
{ {
$this->template->set_var('message',$GLOBALS['phpgw']->common->error_list($error)); $GLOBALS['phpgw']->template->set_var('message',$GLOBALS['phpgw']->common->error_list($error));
} }
else else
{ {
$this->bo->save_cat($values); $this->bo->save_cat($values);
$this->template->set_var('message',lang('Category x has been updated !',$cat_name)); $GLOBALS['phpgw']->template->set_var('message',lang('Category x has been updated !',$cat_name));
} }
} }
@ -378,34 +379,32 @@
if ($GLOBALS['appname']) if ($GLOBALS['appname'])
{ {
$this->template->set_var('title_categories',lang('Edit global category for x',lang($GLOBALS['appname']))); $GLOBALS['phpgw']->template->set_var('title_categories',lang('Edit global category for x',lang($GLOBALS['appname'])));
} }
else else
{ {
$this->template->set_var('title_categories',lang('Edit global category')); $GLOBALS['phpgw']->template->set_var('title_categories',lang('Edit global category'));
} }
$link_data['menuaction'] = 'admin.uicategories.edit'; $link_data['menuaction'] = 'admin.uicategories.edit';
$link_data['cat_id'] = $this->cat_id; $link_data['cat_id'] = $this->cat_id;
$this->template->set_var('actionurl',$GLOBALS['phpgw']->link('/index.php',$link_data)); $GLOBALS['phpgw']->template->set_var('actionurl',$GLOBALS['phpgw']->link('/index.php',$link_data));
$link_data['menuaction'] = 'admin.uicategories.delete'; $link_data['menuaction'] = 'admin.uicategories.delete';
$this->template->set_var('deleteurl',$GLOBALS['phpgw']->link('/index.php',$link_data)); $GLOBALS['phpgw']->template->set_var('deleteurl',$GLOBALS['phpgw']->link('/index.php',$link_data));
$this->template->set_var('cat_name',$GLOBALS['phpgw']->strip_html($cats[0]['name'])); $GLOBALS['phpgw']->template->set_var('cat_name',$GLOBALS['phpgw']->strip_html($cats[0]['name']));
$this->template->set_var('cat_description',$GLOBALS['phpgw']->strip_html($cats[0]['description'])); $GLOBALS['phpgw']->template->set_var('cat_description',$GLOBALS['phpgw']->strip_html($cats[0]['description']));
$this->template->set_var('category_list',$this->bo->formatted_list(array('select' => 'select','all' => 'all','cat_parent' => $cats[0]['parent'], $GLOBALS['phpgw']->template->set_var('category_list',$this->bo->formatted_list(array('select' => 'select','all' => 'all','cat_parent' => $cats[0]['parent'],
'global_cats' => $global_cats))); 'global_cats' => $global_cats)));
$this->template->set_var('edithandle',''); $GLOBALS['phpgw']->template->parse('buttons','edit');
$this->template->set_var('addhandle',''); $GLOBALS['phpgw']->template->fp('phpgw_body','form');
$this->template->pfp('out','form');
$this->template->pfp('edithandle','edit');
} }
function delete() function delete()
{ {
$global_cats = $GLOBALS['HTTP_POST_VARS']['global_cats'] ? $GLOBALS['HTTP_POST_VARS']['global_cats'] : $GLOBALS['HTTP_GET_VARS']['global_cats']; $global_cats = $GLOBALS['HTTP_POST_VARS']['global_cats'] ? $GLOBALS['HTTP_POST_VARS']['global_cats'] : $GLOBALS['HTTP_GET_VARS']['global_cats'];
$link_data = array $link_data = array
( (
'menuaction' => 'admin.uicategories.index', 'menuaction' => 'admin.uicategories.index',
@ -432,9 +431,7 @@
} }
else else
{ {
$this->template->set_file(array('category_delete' => 'delete_cat.tpl')); $GLOBALS['phpgw']->template->set_file(array('category_delete' => 'delete_cat.tpl'));
$this->template->set_block('category_delete','delete','deletehandle');
$this->template->set_block('category_delete','done','donehandle');
$nolink = $GLOBALS['phpgw']->link('/index.php',$link_data); $nolink = $GLOBALS['phpgw']->link('/index.php',$link_data);
@ -448,24 +445,24 @@
$GLOBALS['phpgw']->common->phpgw_header(); $GLOBALS['phpgw']->common->phpgw_header();
$hidden_vars = '<input type="hidden" name="cat_id" value="' . $this->cat_id . '">' . "\n"; $hidden_vars = '<input type="hidden" name="cat_id" value="' . $this->cat_id . '">' . "\n";
$this->template->set_var('hidden_vars',$hidden_vars); $GLOBALS['phpgw']->template->set_var('hidden_vars',$hidden_vars);
if ($apps_cats) if ($apps_cats)
{ {
$this->template->set_var('messages',lang('This category is currently being used by applications as a parent category') . '<br>' $GLOBALS['phpgw']->template->set_var('messages',lang('This category is currently being used by applications as a parent category') . '<br>'
. lang('You will need to remove the subcategories before you can delete this category')); . lang('You will need to remove the subcategories before you can delete this category'));
$this->template->set_var('lang_subs',''); $GLOBALS['phpgw']->template->set_var('lang_subs','');
$this->template->set_var('subs',''); $GLOBALS['phpgw']->template->set_var('subs','');
$this->template->set_var('nolink',$nolink); $GLOBALS['phpgw']->template->set_var('nolink',$nolink);
$this->template->set_var('deletehandle',''); $GLOBALS['phpgw']->template->set_var('deletehandle','');
$this->template->set_var('donehandle',''); $GLOBALS['phpgw']->template->set_var('donehandle','');
$this->template->pfp('out','category_delete'); $GLOBALS['phpgw']->template->pfp('out','category_delete');
$this->template->pfp('donehandle','done'); $GLOBALS['phpgw']->template->pfp('donehandle','done');
} }
else else
{ {
$this->template->set_var('messages',lang('Are you sure you want to delete this category ?')); $GLOBALS['phpgw']->template->set_var('messages',lang('Are you sure you want to delete this category ?'));
$exists = $this->bo->exists(array $exists = $this->bo->exists(array
( (
@ -476,26 +473,24 @@
if ($exists) if ($exists)
{ {
$this->template->set_var('lang_subs',lang('Do you also want to delete all global subcategories ?')); $GLOBALS['phpgw']->template->set_var('lang_subs',lang('Do you also want to delete all global subcategories ?'));
$this->template->set_var('subs','<input type="checkbox" name="subs" value="True">'); $GLOBALS['phpgw']->template->set_var('subs','<input type="checkbox" name="subs" value="True">');
} }
else else
{ {
$this->template->set_var('lang_subs',''); $GLOBALS['phpgw']->template->set_var('lang_subs','');
$this->template->set_var('subs', ''); $GLOBALS['phpgw']->template->set_var('subs', '');
} }
$this->template->set_var('nolink',$nolink); $GLOBALS['phpgw']->template->set_var('nolink',$nolink);
$this->template->set_var('lang_no',lang('No')); $GLOBALS['phpgw']->template->set_var('lang_no',lang('No'));
$link_data['menuaction'] = 'admin.uicategories.delete'; $link_data['menuaction'] = 'admin.uicategories.delete';
$link_data['cat_id'] = $this->cat_id; $link_data['cat_id'] = $this->cat_id;
$this->template->set_var('action_url',$GLOBALS['phpgw']->link('/index.php',$link_data)); $GLOBALS['phpgw']->template->set_var('action_url',$GLOBALS['phpgw']->link('/index.php',$link_data));
$this->template->set_var('lang_yes',lang('Yes')); $GLOBALS['phpgw']->template->set_var('lang_yes',lang('Yes'));
$this->template->set_var('deletehandle','');
$this->template->set_var('donehandle',''); $GLOBALS['phpgw']->template->fp('phpgw_body','category_delete');
$this->template->pfp('out','category_delete');
$this->template->pfp('deletehandle','delete');
} }
} }
} }

View File

@ -25,6 +25,12 @@
</tr> </tr>
</table> </table>
{buttons}
</div>
<!-- END form -->
<!-- BEGIN add --> <!-- BEGIN add -->
<table width="50%" border="0" cellspacing="2" cellpadding="2"> <table width="50%" border="0" cellspacing="2" cellpadding="2">
@ -57,8 +63,5 @@
<input type="submit" name="done" value="{lang_done}"></form></td> <input type="submit" name="done" value="{lang_done}"></form></td>
</tr> </tr>
</table> </table>
</div>
<!-- END edit --> <!-- END edit -->
<!-- END form -->

View File

@ -2,42 +2,28 @@
<!-- BEGIN form --> <!-- BEGIN form -->
<center> <center>
<table border="0" with="65%" cellpadding="2" cellspacing="2"> <table border="0" width="65%" cellpadding="2" cellspacing="2">
<form method="POST" action="{action_url}"> <tr>
<tr> <td align="center" colspan=2>{messages}</td>
<td align="center">{messages}</td> </tr>
</tr> <tr>
<tr> <td align="center">{lang_subs}</td>
<td align="center">{lang_subs}</td> <td align="center">{subs}</td>
<td align="center">{subs}</td> </tr>
</tr> <tr>
<td align="center">
<!-- BEGIN delete --> <form method="POST" action="{action_url}">
<input type="submit" name="confirm" value="{lang_yes}"></td>
<tr> </form>
<td align="center"> </td>
{hidden_vars} <td align="center">
<input type="submit" name="confirm" value="{lang_yes}"></td> <form method="POST" action="{nolink}">
</form> <input type="submit" name="cancel" value="{lang_no}"></td>
<td align="center"><a href="{nolink}">{lang_no}</a></td> </form>
</tr> </td>
</table> </tr>
</center> </table>
</center>
<!-- END delete -->
<!-- BEGIN done -->
</form>
<tr>
<td align="center">
{hidden_vars}
<a href="{nolink}">{lang_done}</a></td>
</tr>
</table>
</center>
<!-- END done -->
<!-- END form --> <!-- END form -->

View File

@ -1,5 +1,7 @@
<!-- $Id$ --> <!-- $Id$ -->
<!-- BEGIN cat_list -->
<center> <center>
<table border="0" cellspacing="2" cellpadding="2"> <table border="0" cellspacing="2" cellpadding="2">
<tr> <tr>
@ -30,19 +32,7 @@
<td width=8% bgcolor="{th_bg}" align="center">{lang_delete}</td> <td width=8% bgcolor="{th_bg}" align="center">{lang_delete}</td>
</tr> </tr>
<!-- BEGIN cat_list --> {rows}
<tr bgcolor="{tr_color}">
<td>{name}</td>
<td>{descr}</td>
<td align="center"><a href="{add_sub}">{lang_sub_entry}</a></td>
<td align="center"><a href="{edit}">{lang_edit_entry}</a></td>
<td align="center"><a href="{delete}">{lang_delete_entry}</a></td>
</tr>
<!-- END cat_list -->
<!-- BEGINN add -->
<tr valign="bottom"> <tr valign="bottom">
<td> <td>
@ -57,7 +47,19 @@
</td> </td>
</tr> </tr>
<!-- END add -->
</table> </table>
</center> </center>
<!-- END cat_list -->
<!-- BEGIN cat_row -->
<tr bgcolor="{tr_color}">
<td>{name}</td>
<td>{descr}</td>
<td align="center"><a href="{add_sub}">{lang_sub_entry}</a></td>
<td align="center"><a href="{edit}">{lang_edit_entry}</a></td>
<td align="center"><a href="{delete}">{lang_delete_entry}</a></td>
</tr>
<!-- END cat_row -->