|
From: Jirka P. <fi...@us...> - 2002-06-13 14:26:43
|
Update of /cvsroot/phpbt/phpbt/templates/default/admin
In directory usw-pr-cvs1:/tmp/cvs-serv32492/phpbt/templates/default/admin
Modified Files:
wrap.html
Added Files:
site-edit.html sitelist.html
Log Message:
SITE TRACKING and localization of query templates.
--- NEW FILE: site-edit.html ---
<b>{$page_title} </b>
<hr size="1">
<form action="{$smarty.server.PHP_SELF}" method="post">
<input type="hidden" name="site_id" value="{$site_id}">
<input type="hidden" name="use_js" value="{$smarty.request.use_js}">
<table border='0'>
{if $error}
<tr>
<td colspan="2" class="error">{$error}</td>
</tr>
{/if}
<tr>
<td align="right" valign="top">{$STRING.name}:</td>
<td><input type="text" size="20" maxlength="50" name="site_name" value="{$site_name|stripslashes|htmlspecialchars}"></td>
</tr>
<tr>
<td align="right" valign="top">{$STRING.sortorder}:</td>
<td><input type="text" size="3" maxlength="3" name="sort_order" value="{$sort_order}"></td>
</tr>
</table>
<br>
<input type="submit" name="submit">
</form>
--- NEW FILE: sitelist.html ---
<script language="JavaScript">
<!--
var me = '{$SCRIPT_NAME}';
{literal}
function popupSite(id) {
window.open(me + '?op=edit&use_js=1&site_id='+id, 'ewin', 'dependent=yes,width=350,height=300,scrollbars=1');
}
{/literal}
// -->
</script>
<table border="0" width="100%">
<tr>
<td valign="top">
<b> {$STRING.sitelist'}</b> - <a href="{$SCRIPT_NAME}?op=edit&site_id=0" onClick="popupSite(0); return false;">{$STRING.addnewsite}</a>
<hr size="1">
<table border="0" cellpadding="2" cellspacing="1" width="100%">
<tr>
<th class="{$headers.name.class}"><a href="{$headers.name.url}">{$STRING.name}</a></th>
<th class="{$headers.sortorder.class}"><a href="{$headers.sortorder.url}">{$STRING.sortorder}</a></th>
<th>{$STRING.delete}</th>
</tr>
{section name=site loop=$sites}
<tr{if $smarty.section.site.iteration is even} class="alt"{/if}>
<td><a href="{$SCRIPT_NAME}?op=edit&site_id={$sites[site].site_id}" onClick="popupSite({$sites[site].site_id}); return false;">{$sites[site].site_name|stripslashes|htmlspecialchars}</a></td>
<td align="center">{$sites[site].sort_order}</td>
<td align="center">
{if not $sites[site].bug_count}
<a href="{$SCRIPT_NAME}?op=del&site_id={$sites[site].site_id}" onClick="return confirm('{$STRING.suredeletesite}')">{$STRING.delete}</a>
{/if}
</td>
</tr>
{/section}
<tr>
<td colspan="4" align="center">
<br>
{$first} - {$last} of {$total}
<br>
{if $pages ne "1"}[ {$pages} ]{/if}
<br>
</td>
</tr>
</table>
<br>
</td>
</tr>
</table>
Index: wrap.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/templates/default/admin/wrap.html,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- wrap.html 12 Jun 2002 12:47:54 -0000 1.13
+++ wrap.html 13 Jun 2002 14:26:40 -0000 1.14
@@ -1,9 +1,9 @@
<html>
<head>
- <META HTTP-EQUIV="Expires" CONTENT="-1">
- <title>phpBugTracker Admin - {$page_title}</title>
- <link rel="StyleSheet" href="../styles/{$STYLE}.css" type="text/css">
- <META http-equiv="Content-Type" content="text/html; charset={$STRING.lang_charset}">
+ <META HTTP-EQUIV="Expires" CONTENT="-1">
+ <title>phpBugTracker Admin - {$page_title}</title>
+ <link rel="StyleSheet" href="../styles/{$STYLE}.css" type="text/css">
+ <META http-equiv="Content-Type" content="text/html; charset={$STRING.lang_charset}">
</head>
<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">
<table width="100%" cellspacing="0" cellpadding="0" height="100%">
@@ -48,6 +48,9 @@
</div>
<div class="navbox" onMouseOver="this.className='navboxselected'" onMouseOut="this.className='navbox'" onClick="document.location.href='database.php'">
<a href="database.php" class="sidenavlink">{$TITLE.database}</a>
+ </div>
+ <div class="navbox" onMouseOver="this.className='navboxselected'" onMouseOut="this.className='navbox'" onClick="document.location.href='site.php'">
+ <a href="site.php" class="sidenavlink">{$TITLE.site}</a>
</div>
<div class="navbox" onMouseOver="this.className='navboxselected'" onMouseOut="this.className='navbox'" onClick="document.location.href='../docs/html/userguide.html'">
<a href="../docs/html/userguide.html" class="sidenavlink">{$TITLE.documentation}</a>
|