Initial Commit of AgileBill Open Source
This commit is contained in:
121
themes/default/blocks/static_page/add.tpl
Normal file
121
themes/default/blocks/static_page/add.tpl
Normal file
@@ -0,0 +1,121 @@
|
||||
|
||||
|
||||
<!-- Display the form validation -->
|
||||
{if $form_validation}
|
||||
{ $block->display("core:alert_fields") }
|
||||
{/if}
|
||||
|
||||
<!-- Display the form to collect the input values -->
|
||||
<form id="static_page_add" name="static_page_add" method="post" action="">
|
||||
{$COOKIE_FORM}
|
||||
<table width=100% border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="0">
|
||||
<tr valign="top">
|
||||
<td width="65%" class="table_heading">
|
||||
<center>
|
||||
{translate module=static_page}title_add{/translate}
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=static_page}
|
||||
field_sort_order
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="static_page_sort_order" value="{$VAR.static_page_sort_order}" {if $static_page_sort_order == true}class="form_field_error"{/if} size="5">
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=static_page}
|
||||
field_date_start
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{if $VAR.static_page_date_start != "" }
|
||||
{ $list->calender_add("static_page_date_start", $VAR.static_page_date_start, "form_field") }
|
||||
{else}
|
||||
{ $list->calender_add("static_page_date_start", "now", "form_field") }
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=static_page}
|
||||
field_date_expire
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{ $list->calender_add("static_page_date_expire", $VAR.static_page_date_expire, "form_field") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=static_page}
|
||||
field_static_page_category_id
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{ $list->menu("", "static_page_static_page_category_id", "static_page_category", "name", $VAR.static_page_static_page_category_id, "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=static_page}
|
||||
field_status
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{if $VAR.static_page_status != ""}
|
||||
{ $list->bool("static_page_status", $VAR.static_page_status, "form_menu") }
|
||||
{else}
|
||||
{ $list->bool("static_page_status", "1", "form_menu") }
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=static_page}
|
||||
field_name
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="static_page_name" value="{$VAR.static_page_name}" {if $static_page_name == true}class="form_field_error"{/if}>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=static_page}
|
||||
field_description
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<textarea name="static_page_description" cols="40" rows="5" {if $static_page_description == true}class="form_field_error"{/if}>{$VAR.static_page_description}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%"></td>
|
||||
<td width="65%">
|
||||
<input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
|
||||
<input type="hidden" name="_page" value="static_page_translate:add">
|
||||
<input type="hidden" name="_page_current" value="static_page:add">
|
||||
<input type="hidden" name="do[]" value="static_page:add">
|
||||
<input type="hidden" name="static_page_date_last" value="{$smarty.now}">
|
||||
<input type="hidden" name="static_page_date_orig" value="{$smarty.now}">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
36
themes/default/blocks/static_page/list.tpl
Normal file
36
themes/default/blocks/static_page/list.tpl
Normal file
@@ -0,0 +1,36 @@
|
||||
{ $method->exe("static_page","page_list")} { if ($method->result == FALSE) } { $block->display("core:method_error") } {/if}
|
||||
{if $static_page_display == true}
|
||||
{foreach from=$static_page_results item=record}
|
||||
<table width=100% border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="0">
|
||||
<tr valign="top">
|
||||
<td width="65%" class="table_heading_cart"> <a href="{$URL}?_page=static_page:show&name={$record.name}">
|
||||
{$record.title}
|
||||
</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#FFFFFF">
|
||||
<table width="100%" border="0" cellpadding="4">
|
||||
<tr>
|
||||
<td class="body" bgcolor="#FFFFFF">
|
||||
{$record.intro}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
{/foreach}
|
||||
{else}
|
||||
|
||||
{translate module=static_page}
|
||||
no_pages
|
||||
{/translate}
|
||||
|
||||
{/if}
|
30
themes/default/blocks/static_page/menu.tpl
Normal file
30
themes/default/blocks/static_page/menu.tpl
Normal file
@@ -0,0 +1,30 @@
|
||||
{ $method->exe("static_page_category","category_list")} { if ($method->result == FALSE) } { $block->display("core:method_error") } {/if}
|
||||
{if $static_page_category_display == true}
|
||||
<table width="140" border="0" cellspacing="0" cellpadding="0" class="menu_background" align="center">
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="0" align="center">
|
||||
<tr>
|
||||
<td class="menu_1">
|
||||
<center>
|
||||
{translate}
|
||||
static_page
|
||||
{/translate}
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
{foreach from=$static_page_category_results item=record key=key}
|
||||
<tr>
|
||||
<td class="menu_2">
|
||||
<a href="{$URL}?_page=static_page:list&id={$record.id}">
|
||||
{$record.name}
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
{/if}
|
131
themes/default/blocks/static_page/search_form.tpl
Normal file
131
themes/default/blocks/static_page/search_form.tpl
Normal file
@@ -0,0 +1,131 @@
|
||||
|
||||
{ $method->exe("static_page","search_form") }
|
||||
{ if ($method->result == FALSE) }
|
||||
{ $block->display("core:method_error") }
|
||||
{else}
|
||||
|
||||
<form name="static_page_search" method="post" action="">
|
||||
{$COOKIE_FORM}
|
||||
<table width=100% border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="0">
|
||||
<tr valign="top">
|
||||
<td width="65%" class="table_heading">
|
||||
<center>
|
||||
{translate module=static_page}title_search{/translate}
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=static_page}
|
||||
field_name
|
||||
{/translate}</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="static_page_name" value="{$VAR.static_page_name}" {if $static_page_name == true}class="form_field_error"{/if}> {translate}search_partial{/translate}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=static_page}
|
||||
field_description
|
||||
{/translate}</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="static_page_description" value="{$VAR.static_page_description}" {if $static_page_description == true}class="form_field_error"{/if}> {translate}search_partial{/translate}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
|
||||
<td width="35%">
|
||||
{translate module=static_page}
|
||||
field_static_page_category_id
|
||||
{/translate}
|
||||
</td>
|
||||
|
||||
<td width="65%">
|
||||
{ $list->menu("", "static_page_static_page_category_id", "static_page_category", "name", "all", "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=static_page}
|
||||
field_status
|
||||
{/translate}</td>
|
||||
|
||||
<td width="65%">
|
||||
{ $list->bool("static_page_status", "all", "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=static_page}
|
||||
field_date_orig
|
||||
{/translate}</td>
|
||||
<td width="65%">
|
||||
{ $list->calender_search("static_page_date_orig", $VAR.static_page_date_orig, "form_field", "") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=static_page}
|
||||
field_date_last
|
||||
{/translate}</td>
|
||||
<td width="65%">
|
||||
{ $list->calender_search("static_page_date_last", $VAR.static_page_date_last, "form_field", "") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=static_page}
|
||||
field_date_expire
|
||||
{/translate}</td>
|
||||
<td width="65%">
|
||||
{ $list->calender_search("static_page_date_expire", $VAR.static_page_date_expire, "form_field", "") }
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<!-- Define the results per page -->
|
||||
<tr class="row1" valign="top">
|
||||
<td width="35%">{translate}search_results_per{/translate}</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="limit" size="5" value="{$static_page_limit}">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- Define the order by field per page -->
|
||||
<tr class="row1" valign="top">
|
||||
<td width="35%">{translate}search_order_by{/translate}</td>
|
||||
<td width="65%">
|
||||
<select name="order_by">
|
||||
{foreach from=$static_page item=record}
|
||||
<option value="{$record.field}">{$record.translate}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr class="row1" valign="top">
|
||||
<td width="35%"></td>
|
||||
<td width="65%">
|
||||
<input type="submit" name="Submit" value="{translate}search{/translate}" class="form_button">
|
||||
<input type="hidden" name="_page" value="core:search">
|
||||
<input type="hidden" name="_escape" value="Y">
|
||||
<input type="hidden" name="module" value="static_page">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
{ $block->display("core:saved_searches") }
|
||||
{ $block->display("core:recent_searches") }
|
||||
{/if}
|
114
themes/default/blocks/static_page/search_show.tpl
Normal file
114
themes/default/blocks/static_page/search_show.tpl
Normal file
@@ -0,0 +1,114 @@
|
||||
|
||||
|
||||
{$method->exe("static_page","search_show")}
|
||||
{if ($method->result == FALSE)}
|
||||
{$block->display("core:method_error")}
|
||||
{else}
|
||||
{if $results == 1}
|
||||
{translate results=$results}search_result_count{/translate}
|
||||
{else}
|
||||
{translate results=$results}search_results_count{/translate}
|
||||
{/if}
|
||||
<BR>
|
||||
|
||||
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
<!-- START
|
||||
var module = 'static_page';
|
||||
{/literal}
|
||||
{if $VAR._print == TRUE}
|
||||
var p = '&_escape=y&_print=y';
|
||||
{else}
|
||||
var p = '';
|
||||
{/if}{literal}
|
||||
var IMAGE = '{/literal}{$NONSSL_IMAGE}{literal}';
|
||||
var order = '{/literal}{$order}{literal}';
|
||||
var sort1 = '{/literal}{$sort}{literal}';
|
||||
var search_id = '{/literal}{$search_id}{literal}';
|
||||
var page = {/literal}{$page}{literal};
|
||||
var pages = '{/literal}{$pages}{literal}';
|
||||
var results = '{/literal}{$results}{literal}';
|
||||
var limit = '{/literal}{$limit}{literal}';
|
||||
record_arr = new Array ({/literal}{$limit}{literal});
|
||||
var i = 0;
|
||||
// END -->
|
||||
</script>
|
||||
<SCRIPT SRC="themes/{/literal}{$THEME_NAME}{literal}/search.js"></SCRIPT>
|
||||
{/literal}
|
||||
|
||||
<!-- SHOW THE SEARCH NAVIGATION MENU -->
|
||||
<center><script language="JavaScript">document.write(search_nav_top());</script></center>
|
||||
|
||||
<!-- BEGIN THE RESULTS CONTENT AREA -->
|
||||
<div id="search_results" onKeyPress="key_handler(event);">
|
||||
<table id="main1" width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
<form id="form1" name="form1" method="post" action="">
|
||||
<tr>
|
||||
<td>
|
||||
<table id="main2" width="100%" border="0" cellspacing="1" cellpadding="2">
|
||||
<!-- DISPLAY THE SEARCH HEADING -->
|
||||
<tr valign="middle" align="center" class="table_heading">
|
||||
<td width="38" class="table_heading"> </td>
|
||||
<td width="388" class="table_heading">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=static_page}field_name{/translate}{literal}','name'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="508" class="table_heading">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=static_page}field_static_page_category_id{/translate}{literal}','static_page_category_id'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="16" class="table_heading"> </td>
|
||||
<td width="16" class="table_heading"> </td>
|
||||
<!-- LOOP THROUGH EACH RECORD -->
|
||||
{foreach from=$static_page item=record}
|
||||
<tr id="row{$record.id}" onClick="row_sel('{$record.id}',1);" onDblClick="window.location='?_page=static_page:view&id={$record.id},{$COOKIE_URL}';" onMouseOver="row_mouseover('{$record.id}', 'row_mouse_over_select', 'row_mouse_over');" onMouseOut="row_mouseout('{$record.id}', '{$record._C}', 'row_select');" class="{$record._C}">
|
||||
<td align="center" width="38">
|
||||
<input type="checkbox" name="record{$record.id}" value="{$record.id}" onClick="row_sel('{$record.id}',1,'{$record._C}');">
|
||||
</td>
|
||||
<td width="388">
|
||||
{$record.name}
|
||||
</td>
|
||||
<td width="508">
|
||||
{$record.static_page_category_id}
|
||||
</td>
|
||||
<td width="16">
|
||||
{if $record.status == "1"}
|
||||
<img src="themes/{$THEME_NAME}/images/icons/go_16.gif" border="0" width="16" height="16">
|
||||
{else}
|
||||
<img src="themes/{$THEME_NAME}/images/icons/stop_16.gif" border="0" width="16" height="16">
|
||||
{/if}
|
||||
</td>
|
||||
<td width="16"> <a href="?_page=core:search&module=static_page_translate&static_page_translate_static_page_id={$record.id}&_next_page_one=view">
|
||||
<img src="themes/{$THEME_NAME}/images/icons/edit_16.gif" border="0" width="16" height="16">
|
||||
</a> </td>
|
||||
</tr>
|
||||
{literal}
|
||||
<script language="JavaScript">row_sel('{/literal}{$record.id}{literal}', 0, '{/literal}{$record._C}{literal}'); record_arr[i] = '{/literal}{$record.id}{literal}'; i++; </script>
|
||||
{/literal}
|
||||
{/foreach}
|
||||
<!-- END OF RESULT LOOP -->
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</form>
|
||||
</table>
|
||||
{if $VAR._print != TRUE}<br>
|
||||
<center>
|
||||
<input type="submit" name="Submit" value="{translate}view_edit{/translate}" onClick="mass_do('', module+':view', limit, module);" class="form_button">
|
||||
<input type="submit" name="Submit" value="{translate}delete{/translate}" onClick="mass_do('delete', module+':search_show&search_id={$search_id}&page={$page}&order_by={$order}&{$sort}{$COOKIE_URL}', limit, module);" class="form_button">
|
||||
<input type="submit" name="Submit" value="{translate}select_all{/translate}" onClick="all_select(record_arr);" class="form_button">
|
||||
<input type="submit" name="Submit" value="{translate}deselect_all{/translate}" onClick="all_deselect(record_arr);" class="form_button">
|
||||
<input type="submit" name="Submit" value="{translate}range_select{/translate}" onClick="all_range_select(record_arr,limit);" class="form_button">
|
||||
<br>
|
||||
</center>
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
||||
|
34
themes/default/blocks/static_page/show.tpl
Normal file
34
themes/default/blocks/static_page/show.tpl
Normal file
@@ -0,0 +1,34 @@
|
||||
{ $method->exe("static_page","page_show")}
|
||||
{ if ($method->result == FALSE) }
|
||||
{ $block->display("core:method_error") }
|
||||
{/if}
|
||||
{if $static_page_display == true}
|
||||
<center>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td><b> <font face="Verdana, Arial, Helvetica, sans-serif" color="#000066" size="3">
|
||||
</font></b>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="2">
|
||||
<tr>
|
||||
<td width="96%" align="left" valign="middle"> <font face="Verdana, Arial, Helvetica, sans-serif" size="3" color="#000066">
|
||||
<b>
|
||||
<u>{$static_page_results.title}</u>
|
||||
</b></font></td>
|
||||
</tr>
|
||||
</table>
|
||||
<b><font face="Verdana, Arial, Helvetica, sans-serif" color="#000066" size="3">
|
||||
</font></b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><font face="Verdana, Arial, Helvetica, sans-serif">
|
||||
{$static_page_results.body}
|
||||
</font></td>
|
||||
</tr>
|
||||
</table>
|
||||
<b> </b>
|
||||
</center>
|
||||
<BR><BR>
|
||||
|
||||
{else}
|
||||
{translate module=static_page}page_not_found{/translate}
|
||||
{/if}
|
208
themes/default/blocks/static_page/view.tpl
Normal file
208
themes/default/blocks/static_page/view.tpl
Normal file
@@ -0,0 +1,208 @@
|
||||
|
||||
{ $method->exe("static_page","view") } { if ($method->result == FALSE) } { $block->display("core:method_error") } {else}
|
||||
|
||||
{literal}
|
||||
<!-- Define the update delete function -->
|
||||
<script language="JavaScript">
|
||||
<!-- START
|
||||
var module = 'static_page';
|
||||
var locations = '{/literal}{$VAR.module_id}{literal}';
|
||||
if (locations != "")
|
||||
{
|
||||
refresh(0,'#'+locations)
|
||||
}
|
||||
// Mass update, view, and delete controller
|
||||
function delete_record(id,ids)
|
||||
{
|
||||
temp = window.confirm("{/literal}{translate}alert_delete{/translate}{literal}");
|
||||
if(temp == false) return;
|
||||
|
||||
var replace_id = id + ",";
|
||||
ids = ids.replace(replace_id, '');
|
||||
if(ids == '') {
|
||||
var url = '?_page=core:search&module=' + module + '&do[]=' + module + ':delete&delete_id=' + id + COOKIE_URL;
|
||||
window.location = url;
|
||||
return;
|
||||
} else {
|
||||
var page = 'view&id=' +ids;
|
||||
}
|
||||
|
||||
var doit = 'delete';
|
||||
var url = '?_page='+ module +':'+ page +'&do[]=' + module + ':' + doit + '&delete_id=' + id + COOKIE_URL;
|
||||
window.location = url;
|
||||
}
|
||||
// END -->
|
||||
</script>
|
||||
{/literal}
|
||||
|
||||
<!-- Loop through each record -->
|
||||
{foreach from=$static_page item=static_page} <a name="{$static_page.id}"></a>
|
||||
|
||||
<!-- Display the field validation -->
|
||||
{if $form_validation}
|
||||
{ $block->display("core:alert_fields") }
|
||||
{/if}
|
||||
|
||||
<!-- Display each record -->
|
||||
<form name="static_page_view" method="post" action="">
|
||||
{$COOKIE_FORM}
|
||||
<table width=100% border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="0">
|
||||
<tr valign="top">
|
||||
<td width="65%" class="table_heading">
|
||||
<center>
|
||||
{translate module=static_page}
|
||||
title_view
|
||||
{/translate}
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=static_page}
|
||||
field_date_orig
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{$list->date_time($static_page.date_orig)}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=static_page}
|
||||
field_date_orig
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{$list->date_time($static_page.date_orig)}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=static_page}
|
||||
field_sort_order
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="static_page_sort_order" value="{$static_page.sort_order}" size="5">
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=static_page}
|
||||
field_date_start
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{ $list->calender_view("static_page_date_start", $static_page.date_start, "form_field", $static_page.id) }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=static_page}
|
||||
field_date_expire
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{ $list->calender_view("static_page_date_expire", $static_page.date_expire, "form_field", $static_page.id) }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=static_page}
|
||||
field_static_page_category_id
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{ $list->menu("", "static_page_static_page_category_id", "static_page_category", "name", $static_page.static_page_category_id, "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=static_page}
|
||||
field_status
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{ $list->bool("static_page_status", $static_page.status, "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=static_page}
|
||||
field_name
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="static_page_name" value="{$static_page.name}" size="32">
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=static_page}
|
||||
field_description
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<textarea name="static_page_description" cols="40" rows="5" >{$static_page.description}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="row1" valign="middle" align="left">
|
||||
<td width="35%"></td>
|
||||
<td width="65%">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td>
|
||||
<input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
|
||||
</td>
|
||||
<td align="right">
|
||||
<input type="button" name="delete" value="{translate}delete{/translate}" class="form_button" onClick="delete_record('{$static_page.id}','{$VAR.id}');">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="5" class="row1">
|
||||
<tr>
|
||||
<td width="42%"> <a href="?_page=core:search&module=static_page_translate&static_page_translate_static_page_id={$static_page.id}&_next_page_one=view">
|
||||
{translate module=static_page}
|
||||
view_all
|
||||
{/translate}
|
||||
</a></td>
|
||||
<td align="right" width="39%"> <a href="?_page=static_page_translate:add&id={$static_page.id}">
|
||||
{translate module=static_page}
|
||||
add_translation
|
||||
{/translate}
|
||||
</a> </td>
|
||||
<td align="right" width="19%"><a href="{$UR}?_page=static_page_translate:add&id={$static_page.id}">
|
||||
</a><a href="{$URL}?_page=static_page:show&name={$static_page.name}" target="_blank">
|
||||
{translate module=static_page}
|
||||
preview
|
||||
{/translate}
|
||||
</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="hidden" name="_page" value="static_page:view">
|
||||
<input type="hidden" name="static_page_id" value="{$static_page.id}">
|
||||
<input type="hidden" name="do[]" value="static_page:update">
|
||||
<input type="hidden" name="id" value="{$VAR.id}">
|
||||
<input type="hidden" name="static_page_date_last" value="{$smarty.now}">
|
||||
</form>
|
||||
{/foreach}
|
||||
{/if}
|
Reference in New Issue
Block a user