| 29 |
<table class="adminheading"> |
<table class="adminheading"> |
| 30 |
<tr> |
<tr> |
| 31 |
<th class="frontpage" rowspan="2"> |
<th class="frontpage" rowspan="2"> |
| 32 |
Frontpage Manager |
<?php echo T_('Frontpage Manager') ?> |
| 33 |
</th> |
</th> |
| 34 |
<td width="right"> |
<td width="right"> |
| 35 |
<?php echo $lists['sectionid'];?> |
<?php echo $lists['sectionid'];?> |
| 43 |
</tr> |
</tr> |
| 44 |
<tr> |
<tr> |
| 45 |
<td align="right" colspan="2"> |
<td align="right" colspan="2"> |
| 46 |
Filter: |
<?php echo T_('Filter:') ?> |
| 47 |
</td> |
</td> |
| 48 |
<td> |
<td> |
| 49 |
<input type="text" name="search" value="<?php echo $search;?>" class="text_area" onChange="document.adminForm.submit();" /> |
<input type="text" name="search" value="<?php echo $search;?>" class="text_area" onChange="document.adminForm.submit();" /> |
| 60 |
<input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count( $rows ); ?>);" /> |
<input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count( $rows ); ?>);" /> |
| 61 |
</th> |
</th> |
| 62 |
<th class="title"> |
<th class="title"> |
| 63 |
Title |
<?php echo T_('Title') ?> |
| 64 |
</th> |
</th> |
| 65 |
<th width="10%" nowrap="nowrap"> |
<th width="10%" nowrap="nowrap"> |
| 66 |
Published |
<?php echo T_('Published') ?> |
| 67 |
</th> |
</th> |
| 68 |
<th colspan="2" nowrap="nowrap" width="5%"> |
<th colspan="2" nowrap="nowrap" width="5%"> |
| 69 |
Reorder |
<?php echo T_('Reorder') ?> |
| 70 |
</th> |
</th> |
| 71 |
<th width="2%"> |
<th width="2%"> |
| 72 |
Order |
<?php echo T_('Order') ?> |
| 73 |
</th> |
</th> |
| 74 |
<th width="1%"> |
<th width="1%"> |
| 75 |
<a href="javascript: saveorder( <?php echo count( $rows )-1; ?> )"><img src="images/filesave.png" border="0" width="16" height="16" alt="Save Order" /></a> |
<a href="javascript: saveorder( <?php echo count( $rows )-1; ?> )"><img src="images/filesave.png" border="0" width="16" height="16" alt="Save Order" /></a> |
| 76 |
</th> |
</th> |
| 77 |
<th width="8%" nowrap="nowrap"> |
<th width="8%" nowrap="nowrap"> |
| 78 |
Access |
<?php echo T_('Access') ?> |
| 79 |
</th> |
</th> |
| 80 |
<th width="10%" align="left"> |
<th width="10%" align="left"> |
| 81 |
Section |
<?php echo T_('Section') ?> |
| 82 |
</th> |
</th> |
| 83 |
<th width="10%" align="left"> |
<th width="10%" align="left"> |
| 84 |
Category |
<?php echo T_('Category') ?> |
| 85 |
</th> |
</th> |
| 86 |
<th width="10%" align="left"> |
<th width="10%" align="left"> |
| 87 |
Author |
<?php echo T_('Author') ?> |
| 88 |
</th> |
</th> |
| 89 |
</tr> |
</tr> |
| 90 |
<?php |
<?php |
| 100 |
$now = date( "Y-m-d H:i:s" ); |
$now = date( "Y-m-d H:i:s" ); |
| 101 |
if ( $now <= $row->publish_up && $row->state == "1" ) { |
if ( $now <= $row->publish_up && $row->state == "1" ) { |
| 102 |
$img = 'publish_y.png'; |
$img = 'publish_y.png'; |
| 103 |
$alt = 'Published'; |
$alt = T_('Published'); |
| 104 |
} else if ( ( $now <= $row->publish_down || $row->publish_down == "0000-00-00 00:00:00" ) && $row->state == "1" ) { |
} else if ( ( $now <= $row->publish_down || $row->publish_down == "0000-00-00 00:00:00" ) && $row->state == "1" ) { |
| 105 |
$img = 'publish_g.png'; |
$img = 'publish_g.png'; |
| 106 |
$alt = 'Published'; |
$alt = T_('Published'); |
| 107 |
} else if ( $now > $row->publish_down && $row->state == "1" ) { |
} else if ( $now > $row->publish_down && $row->state == "1" ) { |
| 108 |
$img = 'publish_r.png'; |
$img = 'publish_r.png'; |
| 109 |
$alt = 'Expired'; |
$alt = T_('Expired'); |
| 110 |
} elseif ( $row->state == "0" ) { |
} elseif ( $row->state == "0" ) { |
| 111 |
$img = "publish_x.png"; |
$img = "publish_x.png"; |
| 112 |
$alt = 'Unpublished'; |
$alt = T_('Unpublished'); |
| 113 |
} |
} |
| 114 |
|
|
| 115 |
$times = ''; |
$times = ''; |
| 116 |
if ( isset( $row->publish_up ) ) { |
if ( isset( $row->publish_up ) ) { |
| 117 |
if ( $row->publish_up == '0000-00-00 00:00:00' ) { |
if ( $row->publish_up == '0000-00-00 00:00:00' ) { |
| 118 |
$times .= '<tr><td>Start: Always</td></tr>'; |
$times .= '<tr><td>'.T_('Start:').' '.T_('Always').'</td></tr>'; |
| 119 |
} else { |
} else { |
| 120 |
$times .= '<tr><td>Start: '. $row->publish_up .'</td></tr>'; |
$times .= '<tr><td>'.T_('Start:').' '. $row->publish_up .'</td></tr>'; |
| 121 |
} |
} |
| 122 |
} |
} |
| 123 |
if ( isset( $row->publish_down ) ) { |
if ( isset( $row->publish_down ) ) { |
| 124 |
if ( $row->publish_down == '0000-00-00 00:00:00' ) { |
if ( $row->publish_down == '0000-00-00 00:00:00' ) { |
| 125 |
$times .= '<tr><td>Finish: No Expiry</td></tr>'; |
$times .= '<tr><td>'.T_('Finish:').' '.T_('No Expiry').'</td></tr>'; |
| 126 |
} else { |
} else { |
| 127 |
$times .= '<tr><td>Finish: '. $row->publish_down .'</td></tr>'; |
$times .= '<tr><td>'.T_('Finish:').' '. $row->publish_down .'</td></tr>'; |
| 128 |
} |
} |
| 129 |
} |
} |
| 130 |
|
|
| 136 |
$author = $row->created_by_alias; |
$author = $row->created_by_alias; |
| 137 |
} else { |
} else { |
| 138 |
$linkA = 'index2.php?option=com_users&task=editA&hidemainmenu=1&id='. $row->created_by; |
$linkA = 'index2.php?option=com_users&task=editA&hidemainmenu=1&id='. $row->created_by; |
| 139 |
$author = '<a href="'. $linkA .'" title="Edit User">'. $row->author .'</a>'; |
$author = '<a href="'. $linkA .'" title="'.T_('Edit User').'">'. $row->author .'</a>'; |
| 140 |
} |
} |
| 141 |
} else { |
} else { |
| 142 |
if ( $row->created_by_alias ) { |
if ( $row->created_by_alias ) { |
| 159 |
echo $row->title; |
echo $row->title; |
| 160 |
} else { |
} else { |
| 161 |
?> |
?> |
| 162 |
<a href="<?php echo $link; ?>" title="Edit Content"> |
<a href="<?php echo $link; ?>" title="<?php echo T_('Edit Content') ?>"> |
| 163 |
<?php echo $row->title; ?> |
<?php echo $row->title; ?> |
| 164 |
</a> |
</a> |
| 165 |
<?php |
<?php |
| 170 |
if ( $times ) { |
if ( $times ) { |
| 171 |
?> |
?> |
| 172 |
<td align="center"> |
<td align="center"> |
| 173 |
<a href="javascript: void(0);" onmouseover="return overlib('<table><?php echo $times; ?></table>', CAPTION, 'Publish Information', BELOW, RIGHT);" onMouseOut="return nd();" onclick="return listItemTask('cb<?php echo $i;?>','<?php echo $row->state ? "unpublish" : "publish";?>')"> |
<a href="javascript: void(0);" onmouseover="return overlib('<table><?php echo $times; ?></table>', CAPTION, '<?php echo T_('Publish Information') ?>', BELOW, RIGHT);" onMouseOut="return nd();" onclick="return listItemTask('cb<?php echo $i;?>','<?php echo $row->state ? "unpublish" : "publish";?>')"> |
| 174 |
<img src="images/<?php echo $img;?>" width="12" height="12" border="0" alt="<?php echo $alt;?>" /> |
<img src="images/<?php echo $img;?>" width="12" height="12" border="0" alt="<?php echo $alt;?>" /> |
| 175 |
</a> |
</a> |
| 176 |
</td> |
</td> |
| 190 |
<?php echo $access;?> |
<?php echo $access;?> |
| 191 |
</td> |
</td> |
| 192 |
<td> |
<td> |
| 193 |
<a href="<?php echo $row->sect_link; ?>" title="Edit Section"> |
<a href="<?php echo $row->sect_link; ?>" title="<?php echo T_('Edit Section') ?>"> |
| 194 |
<?php echo $row->sect_name; ?> |
<?php echo $row->sect_name; ?> |
| 195 |
</a> |
</a> |
| 196 |
</td> |
</td> |
| 197 |
<td> |
<td> |
| 198 |
<a href="<?php echo $row->cat_link; ?>" title="Edit Category"> |
<a href="<?php echo $row->cat_link; ?>" title="<?php echo T_('Edit Category') ?>"> |
| 199 |
<?php echo $row->name; ?> |
<?php echo $row->name; ?> |
| 200 |
</a> |
</a> |
| 201 |
</td> |
</td> |