| version 1.2, 2006/03/29 09:25:01 |
version 1.3, 2006/06/17 11:15:51 |
| Line 48 class phpMyEdit_messages extends phpMyEd |
|
| Line 48 class phpMyEdit_messages extends phpMyEd |
|
| |
|
| function list_table() /* {{{ */ |
function list_table() /* {{{ */ |
| { |
{ |
| global $HTTP_SERVER_VARS; |
|
| $PHP_SELF = $HTTP_POST_VARS['PHP_SELF']; |
|
| $ezin_admin_article_change_up = $this->get_sys_cgi_var('ezin_admin_article_change_up'); |
$ezin_admin_article_change_up = $this->get_sys_cgi_var('ezin_admin_article_change_up'); |
| $ezin_admin_article_change_down = $this->get_sys_cgi_var('ezin_admin_article_change_down'); |
$ezin_admin_article_change_down = $this->get_sys_cgi_var('ezin_admin_article_change_down'); |
| if (isset($ezin_admin_article_change_up)) { |
if (isset($ezin_admin_article_change_up)) { |
| Line 69 class phpMyEdit_messages extends phpMyEd |
|
| Line 67 class phpMyEdit_messages extends phpMyEd |
|
| //$ezin_admin_article = intval($row['article_id']); |
//$ezin_admin_article = intval($row['article_id']); |
| $ezin_admin_msgcount = intval($row['messages']); |
$ezin_admin_msgcount = intval($row['messages']); |
| @mysql_free_result($result); |
@mysql_free_result($result); |
| echo "[$ezin_admin_article]"; |
|
| |
|
| echo '<form class="',$this->getCSSclass('form'); |
echo '<form class="',$this->getCSSclass('form'); |
| echo '" action="',$page_name,'" method="POST">',"\n"; |
echo '" action="',$page_name,'" method="POST">',"\n"; |
| Line 174 class phpMyEdit_messages extends phpMyEd |
|
| Line 171 class phpMyEdit_messages extends phpMyEd |
|
| echo '</td>',"\n"; |
echo '</td>',"\n"; |
| echo '<td class="',$css_class_name2,'">'; |
echo '<td class="',$css_class_name2,'">'; |
| echo '<input',$checked,' class="',$css_class_name2,'"'; |
echo '<input',$checked,' class="',$css_class_name2,'"'; |
| echo ' type="radio"',$this->cgi['prefix']['sys'].'name="rec"'; |
echo ' type="radio" ','name="',$this->cgi['prefix']['sys'],'rec"'; |
| echo ' value="',$ar[$i]['id'],'" class="link"></td>',"\n"; |
echo ' value="',$ar[$i]['id'],'" class="link"></td>',"\n"; |
| echo '<td class="',$css_class_name,'">',htmlspecialchars($ar[$i]['author']), '</td>'; |
echo '<td class="',$css_class_name,'">',htmlspecialchars($ar[$i]['author']), '</td>'; |
| echo '<td class="',$css_class_name,'">',htmlspecialchars($ar[$i]['datetime']),'</td>'; |
echo '<td class="',$css_class_name,'">',htmlspecialchars($ar[$i]['datetime']),'</td>'; |
| Line 219 class phpMyEdit_messages extends phpMyEd |
|
| Line 216 class phpMyEdit_messages extends phpMyEd |
|
| echo '<td class="',$this->getCSSclass('buttons2', $position),'">',"\n"; |
echo '<td class="',$this->getCSSclass('buttons2', $position),'">',"\n"; |
| if ($article_id > 0) { |
if ($article_id > 0) { |
| if ($this->add_enabled()) { |
if ($this->add_enabled()) { |
| echo $this->htmlSubmit('operation', 'Add', $this->getCSSclass('add', $position), false, false), ' '; |
echo $this->htmlSubmit('operation', 'Add', $this->getCSSclass('add', $position), false, false); |
| } |
} |
| if ($messages_count > 0) { |
if ($this->view_enabled()) { |
| if ($this->view_enabled()) { |
echo ' '; |
| echo $this->htmlSubmit('operation', 'View', $this->getCSSclass('view', $position), false, !$total_recs), ' '; |
echo $this->htmlSubmit('operation', 'View', $this->getCSSclass('view', $position), |
| } |
false, $messages_count <= 0); |
| if ($this->change_enabled()) { |
} |
| echo $this->htmlSubmit('operation', 'Change', $this->getCSSclass('change', $position), false, !$total_recs), ' '; |
if ($this->change_enabled()) { |
| } |
echo ' '; |
| if ($this->delete_enabled()) { |
echo $this->htmlSubmit('operation', 'Change', $this->getCSSclass('change', $position), |
| echo $this->htmlSubmit('operation', 'Delete', $this->getCSSclass('delete', $position), false, !$total_recs), ' '; |
false, $messages_count <= 0); |
| } |
} |
| |
if ($this->delete_enabled()) { |
| |
echo ' '; |
| |
echo $this->htmlSubmit('operation', 'Delete', $this->getCSSclass('delete', $position), |
| |
false, $messages_count <= 0); |
| } |
} |
| } |
} |
| echo '</td></tr></table>',"\n"; |
echo '</td></tr></table>',"\n"; |
| Line 307 class phpMyEdit_messages extends phpMyEd |
|
| Line 308 class phpMyEdit_messages extends phpMyEd |
|
| echo '<option'.($selected_id == $row['id'] ? ' selected' : ''); |
echo '<option'.($selected_id == $row['id'] ? ' selected' : ''); |
| echo ' value="',$row['id'],'">',$row['title']; |
echo ' value="',$row['id'],'">',$row['title']; |
| if ($row['date'] > 0) { |
if ($row['date'] > 0) { |
| echo ' (',date($this->format_date, $row['date']),')'; // ) |
printf(' [%d] (%s)', $row['id'], date($this->format_date, $row['date'])); |
| } |
} |
| echo '</option>',"\n"; |
echo '</option>',"\n"; |
| } |
} |