aboutsummaryrefslogtreecommitdiffstats
path: root/config/cron/cron_edit.tmp
diff options
context:
space:
mode:
authorColin Fleming <cj_fleming@sky.com>2013-01-29 19:18:21 +0000
committerColin Fleming <cj_fleming@sky.com>2013-01-29 19:18:21 +0000
commit28a0fc130e8ca236449282a44388a46f1eafe1f9 (patch)
treed5c31d18fab6845373dde08bbec6a4bb543971e0 /config/cron/cron_edit.tmp
parent5d3183341f3289c5a7d70a1f584e5e6b5364736b (diff)
downloadpfsense-packages-28a0fc130e8ca236449282a44388a46f1eafe1f9.tar.gz
pfsense-packages-28a0fc130e8ca236449282a44388a46f1eafe1f9.tar.bz2
pfsense-packages-28a0fc130e8ca236449282a44388a46f1eafe1f9.zip
Update CRON package
Update CRON package to be more consistent with pfSense "Look-N-Feel", added tabs for both "settings" and "edit" and tidied up the HTML code.
Diffstat (limited to 'config/cron/cron_edit.tmp')
-rw-r--r--config/cron/cron_edit.tmp61
1 files changed, 33 insertions, 28 deletions
diff --git a/config/cron/cron_edit.tmp b/config/cron/cron_edit.tmp
index 71367d24..67148af0 100644
--- a/config/cron/cron_edit.tmp
+++ b/config/cron/cron_edit.tmp
@@ -96,44 +96,48 @@ if ($_POST) {
}
}
+$pgtitle = array(gettext("Cron"),gettext("Edit"));
include("head.inc");
?>
-<script type="text/javascript" language="JavaScript">
+<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
+<script type="text/javascript">
+//<![CDATA[
function show_advanced_config() {
document.getElementById("showadvancedbox").innerHTML='';
aodiv = document.getElementById('showadvanced');
aodiv.style.display = "block";
+//]]>
</script>
-<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
<?php include("fbegin.inc"); ?>
-<p class="pgtitle">Cron: Edit</p>
+
<?php if ($input_errors) print_input_errors($input_errors); ?>
<div id="mainlevel">
-<table width="100%" border="0" cellpadding="0" cellspacing="0">
+<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="mainlevel">
<tr><td class="tabnavtbl">
<?php
$tab_array = array();
$tab_array[] = array(gettext("Settings"), false, "/packages/cron/cron.php");
+ $tab_array[] = array(gettext("Edit"), true, "/packages/cron/cron_edit.php");
display_top_tabs($tab_array);
?>
</td></tr>
</table>
-<table width="100%" border="0" cellpadding="0" cellspacing="0">
+<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="mainarea">
<tr>
<td class="tabcont" >
<!--
- <table width="100%" border="0" cellpadding="6" cellspacing="0">
+ <table width="100%" border="0" cellpadding="6" cellspacing="0" summary="title">
<tr>
- <td><p><span class="vexpl"><span class="red"><strong>Cron<br>
+ <td><p><span class="vexpl"><span class="red"><strong>Cron<br />
</strong></span>
</p></td>
</tr>
@@ -142,7 +146,7 @@ function show_advanced_config() {
<br />
<form action="cron_edit.php" method="post" name="iform" id="iform">
- <table width="100%" border="0" cellpadding="6" cellspacing="0">
+ <table width="100%" border="0" cellpadding="6" cellspacing="0" summary="form">
@@ -150,49 +154,50 @@ function show_advanced_config() {
<tr>
<td width="25%" valign="top" class="vncellreq">minute</td>
<td width="75%" class="vtable">
- <input name="minute" type="text" class="formfld" id="minute" size="40" value="<?=htmlspecialchars($pconfig['minute']);?>">
+ <input name="minute" type="text" class="formfld" id="minute" size="40" value="<?=htmlspecialchars($pconfig['minute']);?>" />
</td>
</tr>
<tr>
<td width="25%" valign="top" class="vncellreq">hour</td>
<td width="75%" class="vtable">
- <input name="hour" type="text" class="formfld" id="hour" size="40" value="<?=htmlspecialchars($pconfig['hour']);?>">
+ <input name="hour" type="text" class="formfld" id="hour" size="40" value="<?=htmlspecialchars($pconfig['hour']);?>" />
</td>
</tr>
<tr>
<td width="25%" valign="top" class="vncellreq">mday</td>
<td width="75%" class="vtable">
- <input name="mday" type="text" class="formfld" id="mday" size="40" value="<?=htmlspecialchars($pconfig['mday']);?>">
+ <input name="mday" type="text" class="formfld" id="mday" size="40" value="<?=htmlspecialchars($pconfig['mday']);?>" />
</td>
</tr>
<tr>
<td width="25%" valign="top" class="vncellreq">month</td>
<td width="75%" class="vtable">
- <input name="month" type="text" class="formfld" id="month" size="40" value="<?=htmlspecialchars($pconfig['month']);?>">
+ <input name="month" type="text" class="formfld" id="month" size="40" value="<?=htmlspecialchars($pconfig['month']);?>" />
</td>
</tr>
<tr>
<td width="25%" valign="top" class="vncellreq">wday</td>
<td width="75%" class="vtable">
- <input name="wday" type="text" class="formfld" id="wday" size="40" value="<?=htmlspecialchars($pconfig['wday']);?>">
+ <input name="wday" type="text" class="formfld" id="wday" size="40" value="<?=htmlspecialchars($pconfig['wday']);?>" />
</td>
</tr>
<tr>
<td width="25%" valign="top" class="vncellreq">who</td>
<td width="75%" class="vtable">
- <input name="who" type="text" class="formfld" id="who" size="40" value="<?=htmlspecialchars($pconfig['who']);?>">
+ <input name="who" type="text" class="formfld" id="who" size="40" value="<?=htmlspecialchars($pconfig['who']);?>" />
</td>
</tr>
<tr>
<td width="25%" valign="top" class="vncellreq">command</td>
<td width="75%" class="vtable">
- <input name="command" type="text" class="formfld" id="command" size="40" value="<?=htmlspecialchars($pconfig['command']);?>">
+ <!-- <input name="command" type="text" class="formfld" id="command" size="40" value="<?=htmlspecialchars($pconfig['command']);?>" /> -->
+ <textarea rows="3" cols="68" name="command" id="command"><?=htmlspecialchars($pconfig['command']);?></textarea>
</td>
</tr>
<!--
@@ -224,16 +229,16 @@ function show_advanced_config() {
echo " <option></option>\n";
switch (htmlspecialchars($pconfig['enabled'])) {
case "true":
- echo " <option value='true' selected='yes'>true</option>\n";
+ echo " <option value='true' selected='selected'>true</option>\n";
echo " <option value='false'>false</option>\n";
break;
case "false":
echo " <option value='true'>true</option>\n";
- echo " <option value='false' selected='yes'>false</option>\n";
+ echo " <option value='false' selected='selected'>false</option>\n";
break;
default:
- echo " <option value='true' selected='yes'>true</option>\n";
+ echo " <option value='true' selected='selected'>true</option>\n";
echo " <option value='false'>false</option>\n";
}
echo " </select>\n";
@@ -245,8 +250,8 @@ function show_advanced_config() {
<tr>
<td width="25%" valign="top" class="vncellreq">Description</td>
<td width="75%" class="vtable">
- <input name="description" type="text" class="formfld" id="description" size="40" value="<?=htmlspecialchars($pconfig['description']);?>">
- <br><span class="vexpl">Enter the description here.<br></span>
+ <input name="description" type="text" class="formfld" id="description" size="40" value="<?=htmlspecialchars($pconfig['description']);?>" />
+ <br /><span class="vexpl">Enter the description here.<br /></span>
</td>
</tr>
-->
@@ -254,21 +259,21 @@ function show_advanced_config() {
<tr>
<td valign="top">&nbsp;</td>
<td>
- <input name="Submit" type="submit" class="formbtn" value="Save"> <input class="formbtn" type="button" value="Cancel" onclick="history.back()">
+ <input name="Submit" type="submit" class="formbtn" value="Save"> <input class="formbtn" type="button" value="Cancel" onclick="history.back()" />
<?php if (isset($id) && $a_cron[$id]): ?>
- <input name="id" type="hidden" value="<?=$id;?>">
+ <input name="id" type="hidden" value="<?=$id;?>" />
<?php endif; ?>
</td>
</tr>
</table>
</form>
- <br>
- <br>
- <br>
- <br>
- <br>
- <br>
+ <br />
+ <br />
+ <br />
+ <br />
+ <br />
+ <br />
</td>
</tr>