| verzia 1.6, 2003/11/12 10:53:27 |
verzia 1.7, 2003/11/13 13:29:04 |
|
|
| * http://www.platon.sk/projects/phpMyEdit/ |
* http://www.platon.sk/projects/phpMyEdit/ |
| */ |
*/ |
| |
|
| /* $Platon: phpMyEdit/extensions/phpMyEdit-report.class.php,v 1.5 2003/06/02 17:37:46 nepto Exp $ */ |
/* $Platon: phpMyEdit/extensions/phpMyEdit-report.class.php,v 1.6 2003/11/12 10:53:27 nepto Exp $ */ |
| |
|
| /* Extension TODO: |
/* Extension TODO: |
| |
|
| Riadok 250 class phpMyEdit_report extends phpMyEdit |
|
| Riadok 250 class phpMyEdit_report extends phpMyEdit |
|
| |
|
| function execute_report_screen($table_cols) /* {{{ */ |
function execute_report_screen($table_cols) /* {{{ */ |
| { |
{ |
| echo '<form method=post action="'.htmlspecialchars($this->page_name).'">'."\n"; |
echo '<form class="',$this->getCSSclass('form'),'" action="'; |
| |
echo htmlspecialchars($this->page_name),'" method="POST">',"\n"; |
| if ($this->nav_up()) { |
if ($this->nav_up()) { |
| $this->display_report_selection_buttons('up'); |
$this->display_report_selection_buttons('up'); |
| echo '<hr class="',$this->getCSSclass('hr', 'up'),'">',"\n"; |
echo '<hr class="',$this->getCSSclass('hr', 'up'),'">',"\n"; |
| } |
} |
| echo '<table border=0 cellpadding=0 cellspacing=0 width="100%">',"\n"; |
echo '<table class="',$this->getCSSclass('main'),'" summary="',$this->tb,'">',"\n"; |
| |
|
| $i = 0; |
$i = 0; |
| foreach ($table_cols as $key => $val) { |
foreach ($table_cols as $key => $val) { |
| echo '<tr>',"\n"; |
$css_postfix = @$this->fdd[$key]['css']['postfix']; |
| echo '<td nowrap>',$this->fdd[$key]['name'],'</td>'; |
$css_class_name = $this->getCSSclass('input', null, true, $css_postfix); |
| $varname = 'have_'.$key; |
$varname = 'have_'.$key; |
| $value = $this->get_cgi_cookie_var($varname); |
$value = $this->get_cgi_cookie_var($varname); |
| $checked = @$value ? ' checked' : ''; |
$checked = @$value ? ' checked' : ''; |
| echo '<td width=1 align=center>'; |
echo '<tr class="',$this->getCSSclass('row', null, 'next', $css_postfix),'">',"\n"; |
| echo '<input type=checkbox name="',htmlspecialchars($varname),'"',$checked,'>'; |
echo '<td class="',$this->getCSSclass('key', null, true, $css_postfix),'">'; |
| echo '</td>',"\n",'<td align=left>'; |
echo $this->fdd[$k]['name'],'</td>',"\n"; |
| |
echo '<td class="',$this->getCSSclass('check', null, true, $css_postfix),'">'; |
| |
echo '<input class="',$css_class_name,'" type="checkbox" name="'; |
| |
echo htmlspecialchars($varname),'"',$checked,'>'; |
| |
echo '</td>',"\n"; |
| |
echo '<td class="',$this->getCSSclass('value', null, true, $css_postfix),'"'; |
| |
echo $this->getColAttributes($key),">\n"; |
| $varname = 'qf'.$i; |
$varname = 'qf'.$i; |
| $value = $this->get_cgi_cookie_var($varname); |
$value = $this->get_cgi_cookie_var($varname); |
| if ($this->fdd[$key]['select'] == 'D' || $this->fdd[$key]['select'] == 'M') { |
if ($this->fdd[$key]['select'] == 'D' || $this->fdd[$key]['select'] == 'M') { |
| Riadok 281 class phpMyEdit_report extends phpMyEdit |
|
| Riadok 288 class phpMyEdit_report extends phpMyEdit |
|
| echo $this->htmlSelect($varname.'_id', $css_class_name, $value, $selected, |
echo $this->htmlSelect($varname.'_id', $css_class_name, $value, $selected, |
| $multiple, $readonly, $strip_tags, $escape); |
$multiple, $readonly, $strip_tags, $escape); |
| } else { |
} else { |
| echo '<input type=text name="',htmlspecialchars($varname),'" value="',htmlspecialchars($value); |
echo '<input class="',$css_class_name,'" type=text name="'; |
| echo '" size="',min(40, $val),'" maxlength="',min(40, max(10, $val)),'">'; |
echo htmlspecialchars($varname),'" value="',htmlspecialchars($value),'" size="'; |
| |
echo min(40, $val),'" maxlength="',min(40, max(10, $val)),'">'; |
| } |
} |
| echo '</td>',"\n",'</tr>',"\n"; |
echo '</td>',"\n",'</tr>',"\n"; |
| $i++; |
$i++; |
| } |
} |
| echo '<tr><td colspan=2>'.$this->labels['Records per screen'].'</td>'; |
echo '<tr class="',$this->getCSSclass('row', null, 'next', $css_postfix),'">',"\n"; |
| echo '<td align=left><input type=text name=inc value="'.$this->inc.'"></td></tr>',"\n"; |
echo '<td class="',$this->getCSSclass('key', null, true, $css_postfix),'" colspan="2">'; |
| |
echo $this->labels['Records per screen'],'</td>'; |
| |
echo '<td class="',$this->getCSSclass('value', null, true, $css_postfix),'">'; |
| |
echo '<input class="',$css_class_name,'" type="text" name="inc" value="',$this->inc.'">'; |
| |
echo '</td></tr>',"\n"; |
| echo '</table>',"\n"; |
echo '</table>',"\n"; |
| if ($this->nav_down()) { |
if ($this->nav_down()) { |
| echo '<hr class="',$this->getCSSclass('hr', 'down'),'">',"\n"; |
echo '<hr class="',$this->getCSSclass('hr', 'down'),'">',"\n"; |