summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@dds.nl>2012-07-15 10:56:18 -0700
committerSeth Mos <seth.mos@dds.nl>2012-07-15 10:56:18 -0700
commit51c0e71495e540df6e3bf5af3af3ed0bed9987ef (patch)
treec277a0d4f3880a27c0bd8a51aed0699b02bbfd78 /usr/local/www
parent2f909e2e02a3cb70533c826b0691d1668dab339a (diff)
parent84e94f82ccb7d7dbdb19f0ec5f65a00d7e7079bc (diff)
downloadpfsense-51c0e71495e540df6e3bf5af3af3ed0bed9987ef.zip
pfsense-51c0e71495e540df6e3bf5af3af3ed0bed9987ef.tar.gz
Merge pull request #175 from marcelloc/master
pkg_edit - add show_disable_value option to select_source xml option
Diffstat (limited to 'usr/local/www')
-rwxr-xr-xusr/local/www/pkg_edit.php13
1 files changed, 10 insertions, 3 deletions
diff --git a/usr/local/www/pkg_edit.php b/usr/local/www/pkg_edit.php
index faaf992..9c4841e 100755
--- a/usr/local/www/pkg_edit.php
+++ b/usr/local/www/pkg_edit.php
@@ -58,7 +58,7 @@ function domTT_title($title_msg){
if (!empty($title_msg)){
$title_msg=preg_replace("/\s+/"," ",$title_msg);
$title_msg=preg_replace("/'/","\'",$title_msg);
- return "onmouseout=\"this.style.color = ''; domTT_mouseout(this, event);\" onmouseover=\"domTT_activate(this, event, 'content', '{$title_msg}', 'trail', true, 'delay', 0, 'fade', 'both', 'fadeMax', 93, 'styleClass', 'niceTitle');\"";
+ return "onmouseout=\"this.style.color = ''; domTT_mouseout(this, event);\" onmouseover=\"domTT_activate(this, event, 'content', '{$title_msg}', 'trail', true, 'delay', 0, 'fade', 'both', 'fadeMax', 93, 'delay',300,'styleClass', 'niceTitle');\"";
}
}
@@ -596,6 +596,11 @@ if ($pkg['tabs'] <> "") {
$source_url = $pkga['source'];
eval("\$pkg_source_txt = &$source_url;");
$input="";
+ #check if show disable option is present on xml
+ if(isset($pkga['show_disable_value'])){
+ array_push($pkg_source_txt, array(($pkga['source_name']? $pkga['source_name'] : $pkga['name'])=> $pkga['show_disable_value'],
+ ($pkga['source_value']? $pkga['source_value'] : $pkga['value'])=> $pkga['show_disable_value']));
+ }
foreach ($pkg_source_txt as $opt) {
$source_name =($pkga['source_name']? $opt[$pkga['source_name']] : $opt[$pkga['name']]);
$source_value =($pkga['source_value'] ? $opt[$pkga['source_value']] : $opt[$pkga['value']]);
@@ -937,7 +942,7 @@ function display_row($trc, $value, $fieldname, $type, $rowhelper, $size) {
$fieldname .= '[]';
$multiple = 'multiple';
}
- echo "<select id='{$fieldname}{$trc}' name='{$fieldname}{$trc}' {$size} {$multiple}>\n";
+ echo "<select style='height:22px;' id='{$fieldname}{$trc}' name='{$fieldname}{$trc}' {$size} {$multiple}>\n";
$ifaces = get_configured_interface_with_descr();
$additional_ifaces = $rowhelper['add_to_interfaces_selection'];
if (!empty($additional_ifaces))
@@ -955,7 +960,9 @@ function display_row($trc, $value, $fieldname, $type, $rowhelper, $size) {
echo "</select>\n";
break;
case "select_source":
- echo "<select id='{$fieldname}{$trc}' name='{$fieldname}{$trc}'>\n";
+ echo "<select style='height:22px;' id='{$fieldname}{$trc}' name='{$fieldname}{$trc}'>\n";
+ if(isset($rowhelper['show_disable_value']))
+ echo "<option value='{$rowhelper['show_disable_value']}'>{$rowhelper['show_disable_value']}</option>\n";
$source_url = $rowhelper['source'];
eval("\$pkg_source_txt = &$source_url;");
foreach($pkg_source_txt as $opt) {
OpenPOWER on IntegriCloud