version 1.176, 2006/03/19 13:34:08 |
version 1.177, 2006/04/10 20:36:56 |
|
|
function prev_operation() { return ($this->navop == $this->labels['Prev']) || ($this->navop == '<'); } |
function prev_operation() { return ($this->navop == $this->labels['Prev']) || ($this->navop == '<'); } |
function first_operation() { return ($this->navop == $this->labels['First']) || ($this->navop == '<<'); } |
function first_operation() { return ($this->navop == $this->labels['First']) || ($this->navop == '<<'); } |
function last_operation() { return ($this->navop == $this->labels['Last']) || ($this->navop == '>>'); } |
function last_operation() { return ($this->navop == $this->labels['Last']) || ($this->navop == '>>'); } |
function goto_operation() { return $this->navop == $this->labels['Go to']; } |
|
function clear_operation() { return $this->sw == $this->labels['Clear']; } |
function clear_operation() { return $this->sw == $this->labels['Clear']; } |
|
|
function add_canceled() { return $this->canceladd == $this->labels['Cancel']; } |
function add_canceled() { return $this->canceladd == $this->labels['Cancel']; } |
|
|
echo "</pre>\n"; |
echo "</pre>\n"; |
} else { |
} else { |
echo 'debug_var()::<i>',htmlspecialchars($name),'</i>'; |
echo 'debug_var()::<i>',htmlspecialchars($name),'</i>'; |
echo '::<b>',htmlspecialchars($val),'</b>::',"<br />\n";
|
echo '::<b>',htmlspecialchars($val),'</b>::',"<br />\n"; |
} |
} |
} /* }}} */ |
} /* }}} */ |
|
|
|
|
global $debug_query; |
global $debug_query; |
if ($debug_query || $debug) { |
if ($debug_query || $debug) { |
$line = intval($line); |
$line = intval($line); |
echo '<h4>MySQL query at line ',$line,'</h4>',htmlspecialchars($qry),'<hr />',"\n";
|
echo '<h4>MySQL query at line ',$line,'</h4>',htmlspecialchars($qry),'<hr />',"\n"; |
} |
} |
if (isset($this->db)) { |
if (isset($this->db)) { |
$ret = @mysql_db_query($this->db, $qry, $this->dbh); |
$ret = @mysql_db_query($this->db, $qry, $this->dbh); |
|
|
} |
} |
if (! $ret) { |
if (! $ret) { |
echo '<h4>MySQL error ',mysql_errno($this->dbh),'</h4>'; |
echo '<h4>MySQL error ',mysql_errno($this->dbh),'</h4>'; |
echo htmlspecialchars(mysql_error($this->dbh)),'<hr />',"\n";
|
echo htmlspecialchars(mysql_error($this->dbh)),'<hr />',"\n"; |
} |
} |
return $ret; |
return $ret; |
} /* }}} */ |
} /* }}} */ |
Line 896 function '.$this->js['prefix'].'filter_h |
|
Line 895 function '.$this->js['prefix'].'filter_h |
|
} |
} |
|
|
if ($this->display['form']) { |
if ($this->display['form']) { |
echo '<form class="',$this->getCSSclass('form'),'" method="post"';
|
echo '<form class="',$this->getCSSclass('form'),'" method="post"'; |
echo ' action="',$page_name,'" name="'.$this->cgi['prefix']['sys'].'form">',"\n"; |
echo ' action="',$page_name,'" name="'.$this->cgi['prefix']['sys'].'form">',"\n"; |
} |
} |
return true; |
return true; |
Line 914 function '.$this->js['prefix'].'filter_h |
|
Line 913 function '.$this->js['prefix'].'filter_h |
|
if (! is_array($this->tabs)) { |
if (! is_array($this->tabs)) { |
return false; |
return false; |
} |
} |
echo '<table summary="labels" class="',$this->getCSSclass('tab', $position),'">',"\n";
|
echo '<table summary="labels" class="',$this->getCSSclass('tab', $position),'">',"\n"; |
echo '<tr class="',$this->getCSSclass('tab', $position),'">',"\n"; |
echo '<tr class="',$this->getCSSclass('tab', $position),'">',"\n"; |
for ($i = ($this->tabs[0] == 'PMEtab0' ? 1 : 0); $i < count($this->tabs); $i++) { |
for ($i = ($this->tabs[0] == 'PMEtab0' ? 1 : 0); $i < count($this->tabs); $i++) { |
$css_class_name = $this->getCSSclass($i != $this->cur_tab ? 'tab' : 'tab-selected', $position); |
$css_class_name = $this->getCSSclass($i != $this->cur_tab ? 'tab' : 'tab-selected', $position); |
Line 992 function '.$this->js['prefix'].'filter_h |
|
Line 991 function '.$this->js['prefix'].'filter_h |
|
echo ($this->readonly($k) ? ' disabled' : ''); |
echo ($this->readonly($k) ? ' disabled' : ''); |
echo ' name="',$this->cgi['prefix']['data'].$this->fds[$k],'"'; |
echo ' name="',$this->cgi['prefix']['data'].$this->fds[$k],'"'; |
echo $size_ml_props,' value="'; |
echo $size_ml_props,' value="'; |
echo htmlspecialchars($this->fdd[$k]['default']),'" />';
|
echo htmlspecialchars($this->fdd[$k]['default']),'" />'; |
} |
} |
echo '</td>',"\n"; |
echo '</td>',"\n"; |
if ($this->guidance) { |
if ($this->guidance) { |
Line 1118 function '.$this->js['prefix'].'filter_h |
|
Line 1117 function '.$this->js['prefix'].'filter_h |
|
echo '<input class="',$css_class_name,'" type="text" '; |
echo '<input class="',$css_class_name,'" type="text" '; |
echo ($this->readonly($k) ? 'disabled ' : ''); |
echo ($this->readonly($k) ? 'disabled ' : ''); |
echo 'name="',$this->cgi['prefix']['data'].$this->fds[$k],'" value="'; |
echo 'name="',$this->cgi['prefix']['data'].$this->fds[$k],'" value="'; |
echo htmlspecialchars($row["qf$k"]),'" ',$size_ml_props,' />',"\n";
|
echo htmlspecialchars($row["qf$k"]),'" ',$size_ml_props,' />',"\n"; |
} |
} |
echo '</td>',"\n"; |
echo '</td>',"\n"; |
} /* }}} */ |
} /* }}} */ |
Line 1136 function '.$this->js['prefix'].'filter_h |
|
Line 1135 function '.$this->js['prefix'].'filter_h |
|
echo '<input class="',$this->getCSSclass('value', null, true, $css_postfix),'" type="password" '; |
echo '<input class="',$this->getCSSclass('value', null, true, $css_postfix),'" type="password" '; |
echo ($this->readonly($k) ? 'disabled ' : ''); |
echo ($this->readonly($k) ? 'disabled ' : ''); |
echo 'name="',$this->cgi['prefix']['data'].$this->fds[$k],'" value="'; |
echo 'name="',$this->cgi['prefix']['data'].$this->fds[$k],'" value="'; |
echo htmlspecialchars($row["qf$k"]),'" ',$size_ml_props,' />',"\n";
|
echo htmlspecialchars($row["qf$k"]),'" ',$size_ml_props,' />',"\n"; |
echo '</td>',"\n"; |
echo '</td>',"\n"; |
} /* }}} */ |
} /* }}} */ |
|
|
Line 1354 function '.$this->js['prefix'].'filter_h |
|
Line 1353 function '.$this->js['prefix'].'filter_h |
|
function htmlSubmit($name, $label, $css_class_name, $js_validation = true, $disabled = false, $js = NULL) /* {{{ */ |
function htmlSubmit($name, $label, $css_class_name, $js_validation = true, $disabled = false, $js = NULL) /* {{{ */ |
{ |
{ |
// Note that <input disabled> isn't valid HTML, but most browsers support it |
// Note that <input disabled> isn't valid HTML, but most browsers support it |
|
if($disabled == -1) return; |
$markdisabled = $disabled ? ' disabled' : ''; |
$markdisabled = $disabled ? ' disabled' : ''; |
$ret = '<input'.$markdisabled.' type="submit" class="'.$css_class_name |
$ret = '<input'.$markdisabled.' type="submit" class="'.$css_class_name |
.'" name="'.$this->cgi['prefix']['sys'].ltrim($markdisabled).$name |
.'" name="'.$this->cgi['prefix']['sys'].ltrim($markdisabled).$name |
Line 1363 function '.$this->js['prefix'].'filter_h |
|
Line 1363 function '.$this->js['prefix'].'filter_h |
|
} |
} |
$ret .='"'; |
$ret .='"'; |
if(isset($js)) $ret .= ' '.$js; |
if(isset($js)) $ret .= ' '.$js; |
$ret .= ' />';
|
$ret .= ' />'; |
return $ret; |
return $ret; |
} /* }}} */ |
} /* }}} */ |
|
|
Line 1387 function '.$this->js['prefix'].'filter_h |
|
Line 1387 function '.$this->js['prefix'].'filter_h |
|
function htmlHidden($name, $value) /* {{{ */ |
function htmlHidden($name, $value) /* {{{ */ |
{ |
{ |
return '<input type="hidden" name="'.htmlspecialchars($name) |
return '<input type="hidden" name="'.htmlspecialchars($name) |
.'" value="'.htmlspecialchars($value).'" />'."\n";
|
.'" value="'.htmlspecialchars($value).'" />'."\n"; |
} /* }}} */ |
} /* }}} */ |
|
|
/** |
/** |
Line 1402 function '.$this->js['prefix'].'filter_h |
|
Line 1402 function '.$this->js['prefix'].'filter_h |
|
* @param readonly bool for readonly/disabled selection |
* @param readonly bool for readonly/disabled selection |
* @param strip_tags bool for stripping tags from values |
* @param strip_tags bool for stripping tags from values |
* @param escape bool for HTML escaping values |
* @param escape bool for HTML escaping values |
|
* @param js string to be in the <select >, ususally onChange='..'; |
*/ |
*/ |
function htmlSelect($name, $css, $kv_array, $selected = null, /* ...) {{{ */ |
function htmlSelect($name, $css, $kv_array, $selected = null, /* ...) {{{ */ |
/* booleans: */ $multiple = false, $readonly = false, $strip_tags = false, $escape = true) |
/* booleans: */ $multiple = false, $readonly = false, $strip_tags = false, $escape = true, $js = NULL) |
{ |
{ |
$ret = '<select class="'.htmlspecialchars($css).'" name="'.htmlspecialchars($name); |
$ret = '<select class="'.htmlspecialchars($css).'" name="'.htmlspecialchars($name); |
if ($multiple) { |
if ($multiple) { |
Line 1413 function '.$this->js['prefix'].'filter_h |
|
Line 1414 function '.$this->js['prefix'].'filter_h |
|
$selected = explode(',', $selected); |
$selected = explode(',', $selected); |
} |
} |
} |
} |
$ret .= '"'.($readonly ? ' disabled' : '').'>'."\n"; |
$ret .= '"'.($readonly ? ' disabled' : '').$js.'>'."\n"; |
if (! is_array($selected)) { |
if (! is_array($selected)) { |
$selected = $selected === null ? array() : array($selected); |
$selected = $selected === null ? array() : array($selected); |
} |
} |
Line 1442 function '.$this->js['prefix'].'filter_h |
|
Line 1443 function '.$this->js['prefix'].'filter_h |
|
* if null, empty values will be skipped |
* if null, empty values will be skipped |
* @return get HTML code of original varaibles |
* @return get HTML code of original varaibles |
*/ |
*/ |
function get_origvars_html($origvars, $method = 'post', $default_value = '') /* {{{ */
|
function get_origvars_html($origvars, $method = 'post', $default_value = '') /* {{{ */ |
{ |
{ |
$ret = ''; |
$ret = ''; |
$method = strtoupper($method); |
$method = strtoupper($method); |
Line 1687 function '.$this->js['prefix'].'filter_h |
|
Line 1688 function '.$this->js['prefix'].'filter_h |
|
{ |
{ |
if (($but_str = $this->display_buttons($position)) === null) |
if (($but_str = $this->display_buttons($position)) === null) |
return; |
return; |
if($position == 'down') echo '<hr class="'.$this->getCSSclass('hr', 'down').'" />'."\n";
|
if($position == 'down') echo '<hr class="'.$this->getCSSclass('hr', 'down').'" />'."\n"; |
echo '<table summary="navigation" class="',$this->getCSSclass('navigation', $position),'">',"\n";
|
echo '<table summary="navigation" class="',$this->getCSSclass('navigation', $position),'">',"\n"; |
echo '<tr class="',$this->getCSSclass('navigation', $position),'">',"\n"; |
echo '<tr class="',$this->getCSSclass('navigation', $position),'">',"\n"; |
echo '<td class="',$this->getCSSclass('buttons', $position),'">',"\n"; |
echo '<td class="',$this->getCSSclass('buttons', $position),'">',"\n"; |
echo $but_str,'</td>',"\n"; |
echo $but_str,'</td>',"\n"; |
Line 1712 function '.$this->js['prefix'].'filter_h |
|
Line 1713 function '.$this->js['prefix'].'filter_h |
|
echo ' ',$this->labels['Records'],': ',$this->total_recs; |
echo ' ',$this->labels['Records'],': ',$this->total_recs; |
if($this->display['num_pages'] || $this->display['num_records']) echo '</td>'; |
if($this->display['num_pages'] || $this->display['num_records']) echo '</td>'; |
echo '</tr></table>',"\n"; |
echo '</tr></table>',"\n"; |
if($position == 'up') echo '<hr class="'.$this->getCSSclass('hr', 'up').'" />'."\n";
|
if($position == 'up') echo '<hr class="'.$this->getCSSclass('hr', 'up').'" />'."\n"; |
} /* }}} */ |
} /* }}} */ |
|
|
/* |
/* |
Line 1724 function '.$this->js['prefix'].'filter_h |
|
Line 1725 function '.$this->js['prefix'].'filter_h |
|
return; |
return; |
if ($position == 'down') { |
if ($position == 'down') { |
if ($this->tabs_enabled()) $this->display_tab_labels('down'); |
if ($this->tabs_enabled()) $this->display_tab_labels('down'); |
echo '<hr class="',$this->getCSSclass('hr', 'down'),'" />',"\n";
|
echo '<hr class="',$this->getCSSclass('hr', 'down'),'" />',"\n"; |
} |
} |
echo '<table summary="navigation" class="',$this->getCSSclass('navigation', $position),'">',"\n";
|
echo '<table summary="navigation" class="',$this->getCSSclass('navigation', $position),'">',"\n"; |
echo '<tr class="',$this->getCSSclass('navigation', $position),'">',"\n"; |
echo '<tr class="',$this->getCSSclass('navigation', $position),'">',"\n"; |
echo '<td class="',$this->getCSSclass('buttons', $position),'">',"\n"; |
echo '<td class="',$this->getCSSclass('buttons', $position),'">',"\n"; |
echo $but_str,'</td>',"\n"; |
echo $but_str,'</td>',"\n"; |
// Message is now written here |
// Message is now written here |
//echo '</td>',"\n";
|
//echo '</td>',"\n"; |
if (strlen(@$this->message) > 0) { |
if (strlen(@$this->message) > 0) { |
echo '<td class="',$this->getCSSclass('message', $position),'">',$this->message,'</td>',"\n"; |
echo '<td class="',$this->getCSSclass('message', $position),'">',$this->message,'</td>',"\n"; |
} |
} |
echo '</tr></table>',"\n"; |
echo '</tr></table>',"\n"; |
if ($position == 'up') { |
if ($position == 'up') { |
if ($this->tabs_enabled()) $this->display_tab_labels('up'); |
if ($this->tabs_enabled()) $this->display_tab_labels('up'); |
echo '<hr class="',$this->getCSSclass('hr', 'up'),'" />',"\n";
|
echo '<hr class="',$this->getCSSclass('hr', 'up'),'" />',"\n"; |
} |
} |
} /* }}} */ |
} /* }}} */ |
|
|
Line 1812 function '.$this->js['prefix'].'filter_h |
|
Line 1813 function '.$this->js['prefix'].'filter_h |
|
// now some goto buttons/dropdowns/inputs... |
// now some goto buttons/dropdowns/inputs... |
if ($name == 'goto_text') { |
if ($name == 'goto_text') { |
$ret = '<input type="text" class="'.$this->getCSSclass('gotopn', $position).'"'; |
$ret = '<input type="text" class="'.$this->getCSSclass('gotopn', $position).'"'; |
$ret .= ' name="navpn'.$position.'" value="'.($current_page+1).'"'; |
$ret .= ' name="'.$this->cgi['prefix']['sys'].'navpn'.$position.'" value="'.($current_page+1).'"'; |
$ret .= ' size="'.(strlen($total_pages)+1).'" maxlength="'.(strlen($total_pages)+1).'"'; |
$ret .= ' size="'.(strlen($total_pages)+1).'" maxlength="'.(strlen($total_pages)+1).'"'; |
// TODO some js here.... on enter submit, on click erase ?... |
// TODO some js here.... on enter submit, on click erase ?... |
$ret .=' />';
|
$ret .=' onKeyPress="return PE_filter_handler(this.form, event);" />'; |
return $ret; |
return $ret; |
} |
} |
if ($name == 'goto_combo') { |
if ($name == 'goto_combo') { |
Line 1825 function '.$this->js['prefix'].'filter_h |
|
Line 1826 function '.$this->js['prefix'].'filter_h |
|
for ($i = 0; $i < $total_pages; $i++) { |
for ($i = 0; $i < $total_pages; $i++) { |
$kv_array[$this->inc * $i] = $i + 1; |
$kv_array[$this->inc * $i] = $i + 1; |
} |
} |
// TODO: add onChange="return this.form.submit();" |
// TODO: add onChange="return this.form.submit();" DONE ??? |
return $this->htmlSelect($this->cgi['prefix']['sys'].ltrim($disabledgoto).'navfm'.$position, |
return $this->htmlSelect($this->cgi['prefix']['sys'].ltrim($disabledgoto).'navfm'.$position, |
$this->getCSSclass('goto', $position), $kv_array, (string)$this->fm, false, $disabledgoto); |
$this->getCSSclass('goto', $position), $kv_array, (string)$this->fm, false, $disabledgoto, |
|
false, true, 'onChange="return this.form.submit();"'); |
} |
} |
if ($name == 'goto') { |
if ($name == 'goto') { |
return $this->htmlSubmit('navop', 'Go to', $this->getCSSclass('goto', $position), |
return $this->htmlSubmit('navop', 'Go to', $this->getCSSclass('goto', $position), |
Line 1835 function '.$this->js['prefix'].'filter_h |
|
Line 1837 function '.$this->js['prefix'].'filter_h |
|
} |
} |
if (in_array($name, array('first','prev','next','last','<<','<','>','>>'))) { |
if (in_array($name, array('first','prev','next','last','<<','<','>','>>'))) { |
$disabled_var = 'disabled'.$name; |
$disabled_var = 'disabled'.$name; |
|
$name2 = $name; |
if (strlen($name) <= 2) { |
if (strlen($name) <= 2) { |
$nav_values = array('<<' => 'first', '<' => 'prev', '>' => 'next', '>>' => 'last'); |
$nav_values = array('<<' => 'first', '<' => 'prev', '>' => 'next', '>>' => 'last'); |
$disabled_var = 'disabled'.$nav_values[$name]; |
$disabled_var = 'disabled'.$nav_values[$name]; |
|
$name2 = $nav_values[$name]; |
} |
} |
return $this->htmlSubmit('navop', ucfirst($name), |
return $this->htmlSubmit('navop', ucfirst($name), |
$this->getCSSclass($name, $position), false, $$disabled_var ? $disabled : 0); |
$this->getCSSclass($name2, $position), false, $$disabled_var ? $disabled : 0); |
} |
} |
if(isset($this->labels[$name])) return $this->labels[$name]; |
if(isset($this->labels[$name])) return $this->labels[$name]; |
return $name; |
return $name; |
Line 1866 function '.$this->js['prefix'].'filter_h |
|
Line 1870 function '.$this->js['prefix'].'filter_h |
|
if ($this->fm == '') { |
if ($this->fm == '') { |
$this->fm = 0; |
$this->fm = 0; |
} |
} |
|
$this->fm = $this->navfm; |
if ($this->prev_operation()) { |
if ($this->prev_operation()) { |
$this->fm = $this->fm - $this->inc; |
$this->fm = $this->fm - $this->inc; |
if ($this->fm < 0) { |
if ($this->fm < 0) { |
Line 1878 function '.$this->js['prefix'].'filter_h |
|
Line 1883 function '.$this->js['prefix'].'filter_h |
|
if ($this->next_operation()) { |
if ($this->next_operation()) { |
$this->fm += $this->inc; |
$this->fm += $this->inc; |
} |
} |
if ($this->goto_operation()) { |
|
$this->fm = $this->navfm; |
|
} |
|
$this->number_of_recs(); |
$this->number_of_recs(); |
if ($this->last_operation() || $this->fm > $this->total_recs) { // if goto_text is badly set |
if ($this->last_operation() || $this->fm > $this->total_recs) { // if goto_text is badly set |
$this->fm = (int)(($this->total_recs - 1)/$this->inc)*$this->inc; |
$this->fm = (int)(($this->total_recs - 1)/$this->inc)*$this->inc; |
Line 1890 function '.$this->js['prefix'].'filter_h |
|
Line 1892 function '.$this->js['prefix'].'filter_h |
|
if (0) { // DEBUG |
if (0) { // DEBUG |
echo 'qfn vs. prev_qfn comparsion '; |
echo 'qfn vs. prev_qfn comparsion '; |
echo '[<b>',htmlspecialchars($this->qfn),'</b>]'; |
echo '[<b>',htmlspecialchars($this->qfn),'</b>]'; |
echo '[<b>',htmlspecialchars($this->prev_qfn),'</b>]<br />';
|
echo '[<b>',htmlspecialchars($this->prev_qfn),'</b>]<br />'; |
echo 'comparsion <u>',($this->qfn == $this->prev_qfn ? 'proved' : 'failed'),'</u>'; |
echo 'comparsion <u>',($this->qfn == $this->prev_qfn ? 'proved' : 'failed'),'</u>'; |
echo '<hr />';
|
echo '<hr />'; |
} |
} |
/* |
/* |
* If user is allowed to Change/Delete records, we need an extra column |
* If user is allowed to Change/Delete records, we need an extra column |
Line 2114 function '.$this->js['prefix'].'filter_h |
|
Line 2116 function '.$this->js['prefix'].'filter_h |
|
} |
} |
echo '<input class="',$css_class_name,'" value="',htmlspecialchars(@$m); |
echo '<input class="',$css_class_name,'" value="',htmlspecialchars(@$m); |
echo '" type="text" name="'.$this->cgi['prefix']['sys'].'qf'.$k.'"',$size_ml_props; |
echo '" type="text" name="'.$this->cgi['prefix']['sys'].'qf'.$k.'"',$size_ml_props; |
echo ' onKeyPress="return '.$this->js['prefix'].'filter_handler(this.form, event);" />';
|
echo ' onKeyPress="return '.$this->js['prefix'].'filter_handler(this.form, event);" />'; |
} else { |
} else { |
echo ' '; |
echo ' '; |
} |
} |
Line 2212 function '.$this->js['prefix'].'filter_h |
|
Line 2214 function '.$this->js['prefix'].'filter_h |
|
echo '<a class="',$css_class_name,'" href="',$viewQuery,'"><img class="'; |
echo '<a class="',$css_class_name,'" href="',$viewQuery,'"><img class="'; |
echo $css_class_name,'" src="',$this->url['images']; |
echo $css_class_name,'" src="',$this->url['images']; |
echo 'pme-view.png" height="15" width="16" border="0" '; |
echo 'pme-view.png" height="15" width="16" border="0" '; |
echo 'alt="',$viewTitle,'" title="',$viewTitle,'" /></a>';
|
echo 'alt="',$viewTitle,'" title="',$viewTitle,'" /></a>'; |
} |
} |
if ($this->change_enabled()) { |
if ($this->change_enabled()) { |
$printed_out && print(' '); |
$printed_out && print(' '); |
Line 2220 function '.$this->js['prefix'].'filter_h |
|
Line 2222 function '.$this->js['prefix'].'filter_h |
|
echo '<a class="',$css_class_name,'" href="',$changeQuery,'"><img class="'; |
echo '<a class="',$css_class_name,'" href="',$changeQuery,'"><img class="'; |
echo $css_class_name,'" src="',$this->url['images']; |
echo $css_class_name,'" src="',$this->url['images']; |
echo 'pme-change.png" height="15" width="16" border="0" '; |
echo 'pme-change.png" height="15" width="16" border="0" '; |
echo 'alt="',$changeTitle,'" title="',$changeTitle,'" /></a>';
|
echo 'alt="',$changeTitle,'" title="',$changeTitle,'" /></a>'; |
} |
} |
if ($this->copy_enabled()) { |
if ($this->copy_enabled()) { |
$printed_out && print(' '); |
$printed_out && print(' '); |
Line 2228 function '.$this->js['prefix'].'filter_h |
|
Line 2230 function '.$this->js['prefix'].'filter_h |
|
echo '<a class="',$css_class_name,'" href="',$copyQuery,'"><img class="'; |
echo '<a class="',$css_class_name,'" href="',$copyQuery,'"><img class="'; |
echo $css_class_name,'" src="',$this->url['images']; |
echo $css_class_name,'" src="',$this->url['images']; |
echo 'pme-copy.png" height="15" width="16" border="0" '; |
echo 'pme-copy.png" height="15" width="16" border="0" '; |
echo 'alt="',$copyTitle,'" title="',$copyTitle,'" /></a>';
|
echo 'alt="',$copyTitle,'" title="',$copyTitle,'" /></a>'; |
} |
} |
if ($this->delete_enabled()) { |
if ($this->delete_enabled()) { |
$printed_out && print(' '); |
$printed_out && print(' '); |
Line 2236 function '.$this->js['prefix'].'filter_h |
|
Line 2238 function '.$this->js['prefix'].'filter_h |
|
echo '<a class="',$css_class_name,'" href="',$deleteQuery,'"><img class="'; |
echo '<a class="',$css_class_name,'" href="',$deleteQuery,'"><img class="'; |
echo $css_class_name,'" src="',$this->url['images']; |
echo $css_class_name,'" src="',$this->url['images']; |
echo 'pme-delete.png" height="15" width="16" border="0" '; |
echo 'pme-delete.png" height="15" width="16" border="0" '; |
echo 'alt="',$deleteTitle,'" title="',$deleteTitle,'" /></a>';
|
echo 'alt="',$deleteTitle,'" title="',$deleteTitle,'" /></a>'; |
} |
} |
} |
} |
if ($this->nav_text_links()) { |
if ($this->nav_text_links()) { |
Line 2275 function '.$this->js['prefix'].'filter_h |
|
Line 2277 function '.$this->js['prefix'].'filter_h |
|
echo ' checked'; |
echo ' checked'; |
$first = false; |
$first = false; |
} |
} |
echo ' /></td>',"\n";
|
echo ' /></td>',"\n"; |
} |
} |
} elseif ($this->filter_enabled()) { |
} elseif ($this->filter_enabled()) { |
echo '<td class="',$css_class_name,'" colspan=',$sys_cols,'> </td>',"\n"; |
echo '<td class="',$css_class_name,'" colspan=',$sys_cols,'> </td>',"\n"; |
Line 2396 function '.$this->js['prefix'].'filter_h |
|
Line 2398 function '.$this->js['prefix'].'filter_h |
|
$this->display_copy_change_delete_record(); |
$this->display_copy_change_delete_record(); |
} |
} |
echo '</table>',"\n"; |
echo '</table>',"\n"; |
if ($this->tabs_enabled()) {
|
if ($this->tabs_enabled()) { |
echo '</div>',"\n"; |
echo '</div>',"\n"; |
}
|
} |
$this->display_record_buttons('down'); |
$this->display_record_buttons('down'); |
|
|
$this->form_end(); |
$this->form_end(); |
Line 2880 function '.$this->js['prefix'].'filter_h |
|
Line 2882 function '.$this->js['prefix'].'filter_h |
|
{ |
{ |
echo '<h1>phpMyEdit error: ',htmlspecialchars($message),'</h1>',"\n"; |
echo '<h1>phpMyEdit error: ',htmlspecialchars($message),'</h1>',"\n"; |
if ($additional_info != '') { |
if ($additional_info != '') { |
echo '<hr />',htmlspecialchars($additional_info);
|
echo '<hr />',htmlspecialchars($additional_info); |
} |
} |
return false; |
return false; |
} /* }}} */ |
} /* }}} */ |
Line 3153 function '.$this->js['prefix'].'filter_h |
|
Line 3155 function '.$this->js['prefix'].'filter_h |
|
$this->sw = $this->get_sys_cgi_var('sw'); |
$this->sw = $this->get_sys_cgi_var('sw'); |
$this->rec = $this->get_sys_cgi_var('rec', ''); |
$this->rec = $this->get_sys_cgi_var('rec', ''); |
$this->navop = $this->get_sys_cgi_var('navop'); |
$this->navop = $this->get_sys_cgi_var('navop'); |
$navfmup = intval($this->get_sys_cgi_var('navfmup')); |
$navfmup = $this->get_sys_cgi_var('navfmup'); |
$navfmdown = intval($this->get_sys_cgi_var('navfmdown')); |
$navfmdown = $this->get_sys_cgi_var('navfmdown'); |
$this->navfm = $navfmup != $this->fm ? $navfmup : $navfmdown; |
$navpnup = $this->get_sys_cgi_var('navpnup'); |
|
$navpndown = $this->get_sys_cgi_var('navpndown'); |
|
if($navfmdown!=NULL && $navfmdown != $this->fm) $this->navfm = $navfmdown; |
|
elseif($navfmup!=NULL && $navfmup != $this->fm) $this->navfm = $navfmup; |
|
elseif($navpndown!=NULL && ($navpndown-1)*$this->inc != $this->fm) $this->navfm = ($navpndown-1)*$this->inc; |
|
elseif($navpnup!=NULL && ($navpnup-1)*$this->inc != $this->fm) $this->navfm = ($navpnup-1)*$this->inc; |
|
else $this->navfm = $this->fm; |
$this->operation = $this->get_sys_cgi_var('operation'); |
$this->operation = $this->get_sys_cgi_var('operation'); |
$oper_prefix_len = strlen($this->cgi['prefix']['operation']); |
$oper_prefix_len = strlen($this->cgi['prefix']['operation']); |
if (! strncmp($this->cgi['prefix']['operation'], $this->operation, $oper_prefix_len)) { |
if (! strncmp($this->cgi['prefix']['operation'], $this->operation, $oper_prefix_len)) { |
Line 3216 function '.$this->js['prefix'].'filter_h |
|
Line 3224 function '.$this->js['prefix'].'filter_h |
|
* }}} */ |
* }}} */ |
|
|
?> |
?> |
|
|