Initial Commit of AgileBill Open Source
This commit is contained in:
129
themes/default/blocks/htaccess_dir/add.tpl
Normal file
129
themes/default/blocks/htaccess_dir/add.tpl
Normal file
@@ -0,0 +1,129 @@
|
||||
|
||||
|
||||
<!-- Display the form validation -->
|
||||
{if $form_validation}
|
||||
{ $block->display("core:alert_fields") }
|
||||
{/if}
|
||||
|
||||
<!-- Display the form to collect the input values -->
|
||||
<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=htaccess_dir}
|
||||
title_add
|
||||
{/translate}
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<form id="htaccess_dir_add" name="htaccess_dir_add" method="post" action="">
|
||||
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=htaccess_dir}
|
||||
field_htaccess_id
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{if $VAR.id != "" }
|
||||
{ $list->menu("", "htaccess_dir_htaccess_id", "htaccess", "name", $VAR.id, "form_menu") }
|
||||
{else}
|
||||
{ $list->menu("", "htaccess_dir_htaccess_id", "htaccess", "name", $VAR.htaccess_dir_htaccess_id, "form_menu") }
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=htaccess_dir}
|
||||
field_name
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="htaccess_dir_name" value="{$VAR.htaccess_dir_name}" { if $htaccess_dir_name == true}class="form_field_error"{/if}>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=htaccess_dir}
|
||||
field_description
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<textarea name="htaccess_dir_description" cols="55">{$VAR.htaccess_dir_description}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=htaccess_dir}
|
||||
field_url
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="htaccess_dir_url" value="{$VAR.htaccess_dir_url}" {if $htaccess_dir_url == true}class="form_field_error"{/if} size="55">
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=htaccess_dir}
|
||||
field_path
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<textarea name="htaccess_dir_path" {if $htaccess_dir_path == true}class="form_field_error"{/if} cols="55" rows="2">{$VAR.htaccess_dir_path}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=htaccess_dir}
|
||||
exclude_short
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{ $list->menu_multi($htaccess_dir.exclude, 'htaccess_dir_exclude', 'htaccess_exclude', 'name', '', '12', 'form_menu') }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=htaccess_dir}
|
||||
field_status
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{ $list->bool('htaccess_dir_status', $VAR.htaccess_dir_status, 'form_menu') }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=htaccess_dir}
|
||||
field_recursive
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{ $list->bool('htaccess_dir_recursive', $VAR.htaccess_dir_recursive, 'form_menu') }
|
||||
</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="htaccess_dir:view">
|
||||
<input type="hidden" name="_page_current" value="htaccess_dir:add">
|
||||
<input type="hidden" name="do[]" value="htaccess_dir:add">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
119
themes/default/blocks/htaccess_dir/search_show.tpl
Normal file
119
themes/default/blocks/htaccess_dir/search_show.tpl
Normal file
@@ -0,0 +1,119 @@
|
||||
|
||||
|
||||
{$method->exe("htaccess_dir","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 = 'htaccess_dir';
|
||||
{/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="39" class="table_heading" height="22"> </td>
|
||||
<td width="427" class="table_heading" height="22">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=htaccess_dir}field_name{/translate}{literal}','name'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="441" class="table_heading" height="22">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=htaccess_dir}field_htaccess_id{/translate}{literal}','htaccess_id'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="71" class="table_heading" height="22">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=htaccess_dir}field_url{/translate}{literal}','url'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<!-- LOOP THROUGH EACH RECORD -->
|
||||
{foreach from=$htaccess_dir item=record}
|
||||
<tr id="row{$record.id}" onClick="row_sel('{$record.id}',1);" onDblClick="window.location='?_page=htaccess_dir:view&id={$record.id},';" 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="39">
|
||||
<input type="checkbox" name="record{$record.id}" value="{$record.id}" onClick="row_sel('{$record.id}',1,'{$record._C}');">
|
||||
</td>
|
||||
<td width="427"> <a href="{$record.url}" target="_blank">
|
||||
</a>
|
||||
{$record.name}
|
||||
</td>
|
||||
<td width="441"> <a href="{$record.url}" target="_blank">
|
||||
</a>
|
||||
{$record.htaccess_id}
|
||||
</td>
|
||||
<td width="71">
|
||||
<div align="center"><a href="{$record.url}" target="_blank"><img src="themes/{$THEME_NAME}/images/icons/web_16.gif" alt="{$record.url}" border="0" width="16" height="16"></a>
|
||||
{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}
|
||||
</div>
|
||||
</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}', 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>
|
222
themes/default/blocks/htaccess_dir/view.tpl
Normal file
222
themes/default/blocks/htaccess_dir/view.tpl
Normal file
@@ -0,0 +1,222 @@
|
||||
|
||||
{ $method->exe("htaccess_dir","view") } { if ($method->result == FALSE) } { $block->display("core:method_error") } {else}
|
||||
|
||||
{literal}
|
||||
<script src="themes/{/literal}{$THEME_NAME}{literal}/view.js"></script>
|
||||
<script language="JavaScript">
|
||||
var module = 'htaccess_dir';
|
||||
var locations = '{/literal}{$VAR.module_id}{literal}';
|
||||
var id = '{/literal}{$VAR.id}{literal}';
|
||||
var ids = '{/literal}{$VAR.ids}{literal}';
|
||||
var array_id = id.split(",");
|
||||
var array_ids = ids.split(",");
|
||||
var num=0;
|
||||
if(array_id.length > 2) {
|
||||
document.location = '?_page='+module+':view&id='+array_id[0]+'&ids='+id;
|
||||
}else if (array_ids.length > 2) {
|
||||
document.write(view_nav_top(array_ids,id,ids));
|
||||
}
|
||||
|
||||
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=$htaccess_dir item=htaccess_dir} <a name="{$htaccess_dir.id}"></a>
|
||||
|
||||
<!-- Display the field validation -->
|
||||
{if $form_validation}
|
||||
{ $block->display("core:alert_fields") }
|
||||
{/if}
|
||||
|
||||
<!-- Display each record -->
|
||||
|
||||
|
||||
<table width=100% border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="0">
|
||||
<form name="htaccess_dir_view" method="post" action="">
|
||||
<tr valign="top">
|
||||
<td width="65%" class="table_heading">
|
||||
<center>
|
||||
{translate module=htaccess_dir}
|
||||
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="25%">
|
||||
{translate module=htaccess_dir}
|
||||
field_htaccess_id
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="75%">
|
||||
{ $list->menu("", "htaccess_dir_htaccess_id", "htaccess", "name", $htaccess_dir.htaccess_id, "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="25%">
|
||||
{translate module=htaccess_dir}
|
||||
field_name
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="75%">
|
||||
<input type="text" name="htaccess_dir_name" value="{$htaccess_dir.name}" >
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="25%">
|
||||
{translate module=htaccess_dir}
|
||||
field_description
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="75%">
|
||||
<textarea name="htaccess_dir_description" cols="65">{$htaccess_dir.description}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="25%">
|
||||
{translate module=htaccess_dir}
|
||||
field_url
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="75%">
|
||||
<input type="text" name="htaccess_dir_url" value="{$htaccess_dir.url}" size="55">
|
||||
<a href="{$htaccess_dir.url}" target="_blank"><img src="themes/{$THEME_NAME}/images/icons/web_16.gif" alt="{$htaccess_dir.url}" border="0" width="16" height="16"></a></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="25%">
|
||||
{translate module=htaccess_dir}
|
||||
field_path
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="75%">
|
||||
<input type="hidden" name="htaccess_dir_path" value="{$htaccess_dir.path}">
|
||||
<textarea name="htaccess_dir_path" cols="65" rows="2" disabled>{$htaccess_dir.path}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=htaccess_dir}
|
||||
field_status
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{ $list->bool('htaccess_dir_status', $htaccess_dir.status, 'form_menu') }
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="row1" valign="middle" align="left">
|
||||
<td width="25%">
|
||||
{translate module=htaccess_dir}
|
||||
field_recursive
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="75%">
|
||||
{ $list->bool('htaccess_dir_recursive', $htaccess_dir.recursive, 'form_menu') }
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="row1" valign="middle" align="left">
|
||||
<td width="25%"> </td>
|
||||
<td width="75%"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr class="row1" valign="middle" align="left">
|
||||
<td width="75%">
|
||||
<table width="100%" border="0" cellpadding="2" class="row2">
|
||||
<tr valign="top">
|
||||
<td width="69%">
|
||||
{translate module=htaccess_dir}
|
||||
exclude_long
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="31%" valign="top" align="right">
|
||||
{ $list->menu_multi($htaccess_dir.exclude, 'htaccess_dir_exclude', 'htaccess_exclude', 'name', '', '12', 'form_menu') }
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p align="center"><br>
|
||||
<b>
|
||||
{translate module=htaccess_dir}
|
||||
field_htaccess
|
||||
{/translate}
|
||||
</b><br>
|
||||
<textarea name="_htaccess_dir_htaccess" cols="90" rows="5" disabled>{$htaccess_dir.htaccess}</textarea>
|
||||
</p>
|
||||
<p align="center">
|
||||
<input type="hidden" name="_page" value="htaccess_dir:view">
|
||||
<input type="hidden" name="htaccess_dir_id" value="{$htaccess_dir.id}">
|
||||
<input type="hidden" name="do[]" value="htaccess_dir:update">
|
||||
<input type="hidden" name="id" value="{$VAR.id}">
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr class="row1" valign="middle" align="left">
|
||||
<td width="75%">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td>
|
||||
<input type="submit" name="Submit3" value="{translate}submit{/translate}" class="form_button">
|
||||
</td>
|
||||
<td align="right">
|
||||
<input type="button" name="delete2" value="{translate}delete{/translate}" class="form_button" onClick="delete_record('{$htaccess_dir.id}','{$VAR.id}');">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</form>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellpadding="3">
|
||||
<form name="search" method="post" action="">
|
||||
<tr>
|
||||
<td>
|
||||
<div align="center">
|
||||
<input type="hidden" name="_page" value="core:search">
|
||||
<input type="hidden" name="htaccess_htaccess_id" value="{$htaccess_dir.htaccess_id}">
|
||||
<input type="hidden" name="module" value="htaccess_dir">
|
||||
<input type="submit" name="Submit2" value="{translate module=htaccess}view_all{/translate}" class="form_button">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</form>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
{/foreach}
|
||||
{/if}
|
Reference in New Issue
Block a user