summaryrefslogtreecommitdiffstats
path: root/usr/local/www/pkg_edit.php
Commit message (Collapse)AuthorAgeFilesLines
* Code spacingPhil Davis2015-06-151-33/+34
| | | | | | | and other random stuff I noticed. I think this finishes messing with code style. The codebase should match the developer style guide closely enough that 99.9% of changes will not feel the need to also massage the formatting.
* Be smarter about combinations of combinedfields and usecolspan2Phil Davis2015-05-221-10/+21
| | | | | | | | | | a) When we are doing combined fields and usecolspan2 is in effect, then usecolspan2 is also a signal that we want to spread the combined fields horizontally in a single row. In that case we want the combined fields to all be in a single "tr" tag enclosing them all. That was already working in that way. b) But if usecolspan2 is NOT in effect, then we want the combined fields to still run "together" but vertically under each other. In this case we want each field to be in its own "tr" tag. This change makes (b) happen. If combinedfields is not set, then each of the "if" tests here still follows the same path it did previously, so there should be no effect on the HTML output for any ordinary package fields. These are changes for master that correspond to https://github.com/pfsense/pfsense/pull/1672 on RELENG_2_2.
* More combinedfields and usecolspan2 fixesPhil Davis2015-05-201-4/+12
| | | | | | | Actually the "tr" tag needs to be a single tag-pair that encloses all of the set of fields with combinedfields specified - combinedfields=begin is where the "tr" tag starts and combinedfields=end is where the "tr" tag ends, enclosing a whole set of combined fields. That allows usecolspan2 to work. In the previous change I had made it enclose every field in its own "tr" tag-pair That caused usecolspan2 to be ineffective at spreading the combined fields across the display. Also colspan needs to be initialised each time around the loop - it was getting applied to all fields further down the page after the first one it was used in. This is the version for master.
* Fix tr use for combinedfields in pkg xmlPhil Davis2015-05-201-5/+8
| | | | | When specifying combinedfields begin and end in a package XML file, IE reports some unexpected start tag messages. This is because some "td" tags are not enclosed in "tr" tags in these cases, both at the begin and end of the combinedfields table that is generated. Firefox seems to be forgiving of this. This has been investigated because BBscan177 who is developing pfBlockerNG is trying to use the combinedfields feature and it was not working so well. I will ask him to try these changes for RELENG_2_2 and confirm that they work. When combinedfields is not set, then the code path with this change results in the same HTML being output as previously, so it should not change the HTML generated for packages that do not use combinedfields - i.e. I claim not to have broken anything else :)
* Too many left curlies in pkg_edit.phpPhil Davis2015-05-191-1/+1
| | | I broke the syntax!
* Code style WWW pkgPhil Davis2015-05-151-342/+427
| | | | | | | | | The syntax of these all seems good. Because the 2.3-DEVELOPMENT master does not currently have get_pkg_info implemented, the available packages tab always says "Unable to retrieve package info...". But I don't think I broke any code. This is integrated with the little changes for startdisplayingat var in pkg.php
* Merge pull request #1458 from xbipin/patch-4Renato Botelho2015-02-051-0/+26
|\
| * fix indentxbipin2015-02-021-4/+3
| | | | | | | | fix indent
| * Update pkg_edit.phpxbipin2015-01-311-1/+1
| |
| * add schedule selection to pkg_edit.phpxbipin2015-01-311-0/+27
| | | | | | | | | | | | this allows schedule selection to pkg_edit.php, this can then be utilized by packages to set schedules in many other places. This is the first set of changes, will further modify other files to make full use of schedules.
* | Fix aliases popup width when fields are hidden when page is loaded. It ↵Renato Botelho2015-02-021-1/+1
|/ | | | should fix #4238
* Remove duplicate copyrightPhil Davis2015-01-011-1/+0
| | | | Noticed these had the copyright twice
* Welcome 2015Renato Botelho2014-12-311-2/+2
|
* Change copyright statement to reflect realityJim Thompson2014-11-101-0/+1
|
* modify copyright statement to reflect realityJim Thompson2014-11-101-0/+1
|
* Remove almost all calls to history.back() and make Cancel button back to ↵Renato Botelho2014-09-121-1/+1
| | | | HTTP_REFERER, there are a couple of places I didn't touch on this commit because it requires more work
* We need to allow subdirectories under /usr/local/pkg, here is the proper fixRenato Botelho2014-06-181-7/+5
|
* Avoid directory traversal when reading package xml files, also check if file ↵Renato Botelho2014-06-171-1/+6
| | | | exists before try to read it
* Replace Header() calls by lowercaseRenato Botelho2014-06-131-1/+1
|
* Update "pkg_edit.,php"Colin Fleming2014-06-051-2/+7
| | | | | | | | | | "custom_php_after_head_command", if the PHP code also contains JavaScript ("squid_auth.xml" for example) then this will cause HTML errors, as you are not supposed to have anything between the closing HEAD tag and the opening BODY tag. Add the CLOSEHEAD PHP variable, move the include HEAD.INC into the PHP IF statement and manually close the HEAD tab, else just include HEAD.INC
* Tidy up Ampersand XHTMLColin Fleming2014-05-271-1/+1
| | | | Deprecate Ampersand in Anchor tags
* fixes Bug #3569Marcello Coutinho2014-04-071-1/+4
| | | | | | | | On packages that uses row_helper when user clicks on add or delete button, the page scrolls to top. It seems something with ajax http://stackoverflow.com/questions/1061580/jquery-click-on-anchor-element-forces-scroll-to-top A simple return false after jquery action fixes the unwanted scroll.
* replaced uppercase html tags with lowercaseayvis2014-03-191-1/+1
| | | | js files saved as UTF-8 / LF language="JavaScript" deprecated, replaced with type="text/javascript"
* xhtml Complianceayvis2014-03-141-12/+12
| | | replaced <br>, <br/> and </br> with <br />
* Update "pkg_edit.php" XHTMLColin Fleming2013-09-261-2/+2
| | | | Update HTML Boolean operator
* Set network interfaces description as interface name.ccesario2013-09-251-1/+3
|
* Remove call-time pass by reference for do_input_validation, helps ticket #2565Renato Botelho2013-09-121-1/+1
|
* Fix #3127Renato Botelho2013-09-061-6/+6
| | | | | | | By default htmlspecialchars does not consider single quotes, what can be a problem when value attribute is set using it. Replace value attribute set to use double quotes on places where it's obviously recieving a result of htmlspecialchars() call.
* Fix #3113, fix multiple english spell errors s/seperet/separat/Renato Botelho2013-07-281-4/+4
|
* Update "pkg_edit.php"Colin Fleming2013-05-021-1/+1
| | | | | Move closing TR tag outside, otherwise the 'foreach' statement will produce a duplicate closing TR tag.
* Update "pkg_edit.php"Colin Fleming2013-04-221-1/+2
| | | | Add missing closing B tag Add missing closing TD tag
* Tidy up "pkg_edit.php" XHTMLColin Fleming2013-04-161-5/+5
| | | | | Remove duplicate $size variable Add summary statement to TABLE tags
* Tidy up "pkg_edit.php" XHTMLColin Fleming2013-04-151-27/+27
| | | | | | | | Close INPUT tags Update HTML boolean operators Add missing start TR tag Remove "name" statement from OPTION tag, invalid in XHTML Remove duplicate "id" statement in SELECT tag
* Update pkg_edit.phpColin Fleming2013-04-141-2/+2
| | | | Correct CDATA sections in SCRIPT tag Correct ALT statement in IMG tag
* Update pkg_edit.phpColin Fleming2013-04-141-1/+1
| | | Correct CDATA section in SCRIPT tag
* Tidy up "pkg_edit.php" XHTMLColin Fleming2013-04-141-25/+31
| | | | | | | Close BR and IMG tags and add ALT statement to IMG tags Change ONCLICK to lower case Move "fbegin.inc" PHP statement before the SCRIPTS Add CDATA sections to SCRIPT tags
* Add onchange tag to checkbox tooLuiz Gustavo Costa (gugabsd)2013-02-241-1/+2
|
* Fix PHP errors relating to using string offset as an arrayPhil Lavin2013-02-051-2/+2
|
* add input autocomplete array aliasesbruno2012-12-061-1/+44
|
* More encoding...jim-p2012-10-311-7/+7
|
* pkg_edit - add show_disable_value option to select_source xml optionCharlie Root2012-07-061-3/+10
|
* If a package has donotsave, still process its input validation. Properly ↵jim-p2012-06-281-79/+82
| | | | handle preoutput in the case of input errors also.
* fix select_source optionMarcello Coutinho2012-06-071-26/+27
|
* include more features to interfaces_selection Marcello Coutinho2012-06-011-29/+50
| | | | | | | | <showips> <showvirtualips> <showlistenall> <hideinterfaceregex> New features will show only with these new options on xml file
* new pkg_edit.php code with revised functions, no 0-99 loop on row_helper, ↵Marcello Coutinho2012-05-311-578/+547
| | | | | | | movable rows, tootip with domtt. new field types button, info as well combinefileds working and colspan2 on nodisplaname option. jquery code improved too. tested on squid, dansguardian, sshdcond , filer , pfblocker package.
* Fix tag order.bcyrill2012-04-121-1/+1
|
* Removed flawed HTML.bcyrill2012-04-111-4/+0
|
* Added interface_selection to choose a interface in tinydns failover selectionwhizkidzz2012-04-061-2/+26
| | | | Changed the $text so that no "option value" is preselected when adding a newrow with addrowto function.
* Added rowsize[] for use in row_helper_dynamic.jswhizkidzz2012-04-061-3/+4
|
* Added empty option line so not to write to config.xml if not filled inwhizkidzz2012-04-061-1/+5
|
OpenPOWER on IntegriCloud