• Hauptseite
  • Zusätzliche Informationen
  • Namensbereiche
  • Klassen
  • Dateien

administrator/components/com_content/admin.content.html.php

gehe zur Dokumentation dieser Datei
00001 <?php
00015 // no direct access
00016 defined( '_VALID_MOS' ) or die( 'Restricted access' );
00017 
00022 class HTML_content {
00023 
00028         function showContent( &$rows, $section, &$lists, $search, $pageNav, $all=NULL, $redirect ) {
00029                 global $my, $acl, $database, $mosConfig_offset;
00030 
00031                 mosCommonHTML::loadOverlib();
00032                 ?>
00033                 <form action="index2.php?option=com_content" method="post" name="adminForm">
00034 
00035                 <table class="adminheading">
00036                 <tr>
00037                         <th class="edit" rowspan="2" nowrap="nowrap">
00038                         <?php
00039                         if ( $all ) {
00040                                 ?>
00041                                 Content Items Manager <small><small>[ Section: All ]</small></small>
00042                                 <?php
00043                         } else {
00044                                 ?>
00045                                 Content Items Manager <small><small>[ Section: <?php echo $section->title; ?> ]</small></small>
00046                                 <?php
00047                         }
00048                         ?>
00049                         </th>
00050                         <?php
00051                         if ( $all ) {
00052                                 ?>
00053                                 <td align="right" rowspan="2" valign="top">
00054                                 <?php echo $lists['sectionid'];?>
00055                                 </td>
00056                                 <?php
00057                         }
00058                         ?>
00059                         <td align="right" valign="top">
00060                         <?php echo $lists['catid'];?>
00061                         </td>
00062                         <td valign="top">
00063                         <?php echo $lists['authorid'];?>
00064                         </td>
00065                 </tr>
00066                 <tr>
00067                         <td align="right">
00068                         Filter:
00069                         </td>
00070                         <td>
00071                         <input type="text" name="search" value="<?php echo htmlspecialchars( $search );?>" class="text_area" onChange="document.adminForm.submit();" />
00072                         </td>
00073                 </tr>
00074                 </table>
00075 
00076                 <table class="adminlist">
00077                 <tr>
00078                         <th width="5">
00079                         #
00080                         </th>
00081                         <th width="5">
00082                         <input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count( $rows ); ?>);" />
00083                         </th>
00084                         <th class="title">
00085                         Title
00086                         </th>
00087                         <th width="5%">
00088                         Published
00089                         </th>
00090                         <th nowrap="nowrap" width="5%">
00091                         Front Page
00092                         </th>
00093                         <th colspan="2" align="center" width="5%">
00094                         Reorder
00095                         </th>
00096                         <th width="2%">
00097                         Order
00098                         </th>
00099                         <th width="1%">
00100                         <a href="javascript: saveorder( <?php echo count( $rows )-1; ?> )"><img src="images/filesave.png" border="0" width="16" height="16" alt="Save Order" /></a>
00101                         </th>
00102                         <th >
00103                         Access
00104                         </th>
00105                         <th width="2%">
00106                         ID
00107                         </th>
00108                         <?php
00109                         if ( $all ) {
00110                                 ?>
00111                                 <th align="left">
00112                                 Section
00113                                 </th>
00114                                 <?php
00115                         }
00116                         ?>
00117                         <th align="left">
00118                         Category
00119                         </th>
00120                         <th align="left">
00121                         Author
00122                         </th>
00123                         <th align="center" width="10">
00124                         Date
00125                         </th>
00126                   </tr>
00127                 <?php
00128                 $k = 0;
00129                 $nullDate = $database->getNullDate();
00130                 for ($i=0, $n=count( $rows ); $i < $n; $i++) {
00131                         $row = &$rows[$i];
00132 
00133                         mosMakeHtmlSafe($row);
00134 
00135                         $link   = 'index2.php?option=com_content&sectionid='. $redirect .'&task=edit&hidemainmenu=1&id='. $row->id;
00136 
00137                         $row->sect_link         = 'index2.php?option=com_sections&task=editA&hidemainmenu=1&id='. $row->sectionid;
00138                         $row->cat_link          = 'index2.php?option=com_categories&task=editA&hidemainmenu=1&id='. $row->catid;
00139 
00140                         $now = _CURRENT_SERVER_TIME;
00141                         if ( $now <= $row->publish_up && $row->state == 1 ) {
00142                         // Published
00143                                 $img = 'publish_y.png';
00144                                 $alt = 'Published';
00145                         } else if ( ( $now <= $row->publish_down || $row->publish_down == $nullDate ) && $row->state == 1 ) {
00146                         // Pending
00147                                 $img = 'publish_g.png';
00148                                 $alt = 'Published';
00149                         } else if ( $now > $row->publish_down && $row->state == 1 ) {
00150                         // Expired
00151                                 $img = 'publish_r.png';
00152                                 $alt = 'Expired';
00153                         } elseif ( $row->state == 0 ) {
00154                         // Unpublished
00155                                 $img = 'publish_x.png';
00156                                 $alt = 'Unpublished';
00157                         }
00158 
00159                         // correct times to include server offset info
00160                         $row->publish_up        = mosFormatDate( $row->publish_up, _CURRENT_SERVER_TIME_FORMAT );
00161                         if (trim( $row->publish_down ) == $nullDate || trim( $row->publish_down ) == '' || trim( $row->publish_down ) == '-' ) {
00162                                 $row->publish_down = 'Never';
00163                         }
00164                         $row->publish_down      = mosFormatDate( $row->publish_down, _CURRENT_SERVER_TIME_FORMAT );
00165 
00166                         $times = '';
00167                         if ($row->publish_up == $nullDate) {
00168                                 $times .= "<tr><td>Start: Always</td></tr>";
00169                         } else {
00170                                 $times .= "<tr><td>Start: $row->publish_up</td></tr>";
00171                         }
00172                         if ($row->publish_down == $nullDate || $row->publish_down == 'Never') {
00173                                 $times .= "<tr><td>Finish: No Expiry</td></tr>";
00174                         } else {
00175                                 $times .= "<tr><td>Finish: $row->publish_down</td></tr>";
00176                         }
00177 
00178                         if ( $acl->acl_check( 'administration', 'manage', 'users', $my->usertype, 'components', 'com_users' ) ) {
00179                                 if ( $row->created_by_alias ) {
00180                                         $author = $row->created_by_alias;
00181                                 } else {
00182                                         $linkA  = 'index2.php?option=com_users&task=editA&hidemainmenu=1&id='. $row->created_by;
00183                                         $author = '<a href="'. $linkA .'" title="Edit User">'. $row->author .'</a>';
00184                                 }
00185                         } else {
00186                                 if ( $row->created_by_alias ) {
00187                                         $author = $row->created_by_alias;
00188                                 } else {
00189                                         $author = $row->author;
00190                                 }
00191                         }
00192 
00193                         $date = mosFormatDate( $row->created, '%x' );
00194 
00195                         $access         = mosCommonHTML::AccessProcessing( $row, $i );
00196                         $checked        = mosCommonHTML::CheckedOutProcessing( $row, $i );
00197                         ?>
00198                         <tr class="<?php echo "row$k"; ?>">
00199                                 <td>
00200                                 <?php echo $pageNav->rowNumber( $i ); ?>
00201                                 </td>
00202                                 <td align="center">
00203                                 <?php echo $checked; ?>
00204                                 </td>
00205                                 <td>
00206                                 <?php
00207                                 if ( $row->checked_out && ( $row->checked_out != $my->id )) {
00208                                         echo $row->title;
00209                                 } else {
00210                                         ?>
00211                                         <a href="<?php echo $link; ?>" title="Edit Content">
00212                                         <?php echo $row->title; ?>
00213                                         </a>
00214                                         <?php
00215                                 }
00216                                 ?>
00217                                 </td>
00218                                 <?php
00219                                 if ( $times ) {
00220                                         ?>
00221                                         <td align="center">
00222                                         <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";?>')">
00223                                         <img src="images/<?php echo $img;?>" width="12" height="12" border="0" alt="<?php echo $alt; ?>" />
00224                                         </a>
00225                                         </td>
00226                                         <?php
00227                                 }
00228                                 ?>
00229                                 <td align="center">
00230                                 <a href="javascript: void(0);" onclick="return listItemTask('cb<?php echo $i;?>','toggle_frontpage')">
00231                                 <img src="images/<?php echo ( $row->frontpage ) ? 'tick.png' : 'publish_x.png';?>" width="12" height="12" border="0" alt="<?php echo ( $row->frontpage ) ? 'Yes' : 'No';?>" />
00232                                 </a>
00233                                 </td>
00234                                 <td align="right">
00235                                 <?php echo $pageNav->orderUpIcon( $i, ($row->catid == @$rows[$i-1]->catid) ); ?>
00236                                 </td>
00237                                 <td align="left">
00238                                 <?php echo $pageNav->orderDownIcon( $i, $n, ($row->catid == @$rows[$i+1]->catid) ); ?>
00239                                 </td>
00240                                 <td align="center" colspan="2">
00241                                 <input type="text" name="order[]" size="5" value="<?php echo $row->ordering; ?>" class="text_area" style="text-align: center" />
00242                                 </td>
00243                                 <td align="center">
00244                                 <?php echo $access;?>
00245                                 </td>
00246                                 <td align="left">
00247                                 <?php echo $row->id; ?>
00248                                 </td>
00249                                 <?php
00250                                 if ( $all ) {
00251                                         ?>
00252                                         <td align="left">
00253                                         <a href="<?php echo $row->sect_link; ?>" title="Edit Section">
00254                                         <?php echo $row->section_name; ?>
00255                                         </a>
00256                                         </td>
00257                                         <?php
00258                                 }
00259                                 ?>
00260                                 <td align="left">
00261                                 <a href="<?php echo $row->cat_link; ?>" title="Edit Category">
00262                                 <?php echo $row->name; ?>
00263                                 </a>
00264                                 </td>
00265                                 <td align="left">
00266                                 <?php echo $author; ?>
00267                                 </td>
00268                                 <td align="left">
00269                                 <?php echo $date; ?>
00270                                 </td>
00271                         </tr>
00272                         <?php
00273                         $k = 1 - $k;
00274                 }
00275                 ?>
00276                 </table>
00277 
00278                 <?php echo $pageNav->getListFooter(); ?>
00279                 <?php mosCommonHTML::ContentLegend(); ?>
00280 
00281                 <input type="hidden" name="option" value="com_content" />
00282                 <input type="hidden" name="sectionid" value="<?php echo $section->id;?>" />
00283                 <input type="hidden" name="task" value="" />
00284                 <input type="hidden" name="boxchecked" value="0" />
00285                 <input type="hidden" name="hidemainmenu" value="0" />
00286                 <input type="hidden" name="redirect" value="<?php echo $redirect;?>" />
00287                 <input type="hidden" name="<?php echo josSpoofValue(); ?>" value="1" />
00288                 </form>
00289                 <?php
00290         }
00291 
00292 
00297         function showArchive( &$rows, $section, &$lists, $search, $pageNav, $option, $all=NULL, $redirect ) {
00298                 global $my, $acl;
00299 
00300                 ?>
00301                 <script language="javascript" type="text/javascript">
00302                 function submitbutton(pressbutton) {
00303                         if (pressbutton == 'remove') {
00304                                 if (document.adminForm.boxchecked.value == 0) {
00305                                         alert('Please make a selection from the list to send to Trash');
00306                                 } else if ( confirm('Are you sure you want to Trash the selected items? \nThis will not permanently delete the items.')) {
00307                                         submitform('remove');
00308                                 }
00309                         } else {
00310                                 submitform(pressbutton);
00311                         }
00312                 }
00313                 </script>
00314                 <form action="index2.php" method="post" name="adminForm">
00315 
00316                 <table class="adminheading">
00317                 <tr>
00318                         <th class="edit" rowspan="2">
00319                         <?php
00320                         if ( $all ) {
00321                                 ?>
00322                                 Archive Manager <small><small>[ Section: All ]</small></small>
00323                                 <?php
00324                         } else {
00325                                 ?>
00326                                 Archive Manager <small><small>[ Section: <?php echo $section->title; ?> ]</small></small>
00327                                 <?php
00328                         }
00329                         ?>
00330                         </th>
00331                         <?php
00332                         if ( $all ) {
00333                                 ?>
00334                                 <td align="right" rowspan="2" valign="top">
00335                                 <?php echo $lists['sectionid'];?>
00336                                 </td>
00337                                 <?php
00338                         }
00339                         ?>
00340                         <td align="right" valign="top">
00341                         <?php echo $lists['catid'];?>
00342                         </td>
00343                         <td valign="top">
00344                         <?php echo $lists['authorid'];?>
00345                         </td>
00346                 </tr>
00347                 <tr>
00348                         <td align="right">
00349                         Filter:
00350                         </td>
00351                         <td>
00352                         <input type="text" name="search" value="<?php echo htmlspecialchars( $search );?>" class="text_area" onChange="document.adminForm.submit();" />
00353                         </td>
00354                 </tr>
00355                 </table>
00356 
00357                 <table class="adminlist">
00358                 <tr>
00359                         <th width="5">
00360                         #
00361                         </th>
00362                         <th width="20">
00363                         <input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count( $rows ); ?>);" />
00364                         </th>
00365                         <th class="title">
00366                         Title
00367                         </th>
00368                         <th width="2%">
00369                         Order
00370                         </th>
00371                         <th width="1%">
00372                         <a href="javascript: saveorder( <?php echo count( $rows )-1; ?> )"><img src="images/filesave.png" border="0" width="16" height="16" alt="Save Order" /></a>
00373                         </th>
00374                         <th width="15%" align="left">
00375                         Category
00376                         </th>
00377                         <th width="15%" align="left">
00378                         Author
00379                         </th>
00380                         <th align="center" width="10">
00381                         Date
00382                         </th>
00383                 </tr>
00384                 <?php
00385                 $k = 0;
00386                 for ($i=0, $n=count( $rows ); $i < $n; $i++) {
00387                         $row = &$rows[$i];
00388 
00389                         $row->cat_link  = 'index2.php?option=com_categories&task=editA&hidemainmenu=1&id='. $row->catid;
00390 
00391                         if ( $acl->acl_check( 'administration', 'manage', 'users', $my->usertype, 'components', 'com_users' ) ) {
00392                                 if ( $row->created_by_alias ) {
00393                                         $author = $row->created_by_alias;
00394                                 } else {
00395                                         $linkA  = 'index2.php?option=com_users&task=editA&hidemainmenu=1&id='. $row->created_by;
00396                                         $author = '<a href="'. $linkA .'" title="Edit User">'. $row->author .'</a>';
00397                                 }
00398                         } else {
00399                                 if ( $row->created_by_alias ) {
00400                                         $author = $row->created_by_alias;
00401                                 } else {
00402                                         $author = $row->author;
00403                                 }
00404                         }
00405 
00406                         $date = mosFormatDate( $row->created, '%x' );
00407                         ?>
00408                         <tr class="<?php echo "row$k"; ?>">
00409                                 <td>
00410                                 <?php echo $pageNav->rowNumber( $i ); ?>
00411                                 </td>
00412                                 <td width="20">
00413                                 <?php echo mosHTML::idBox( $i, $row->id ); ?>
00414                                 </td>
00415                                 <td>
00416                                 <?php echo $row->title; ?>
00417                                 </td>
00418                                 <td align="center" colspan="2">
00419                                 <input type="text" name="order[]" size="5" value="<?php echo $row->ordering; ?>" class="text_area" style="text-align: center" />
00420                                 </td>
00421                                 <td>
00422                                 <a href="<?php echo $row->cat_link; ?>" title="Edit Category">
00423                                 <?php echo $row->name; ?>
00424                                 </a>
00425                                 </td>
00426                                 <td>
00427                                 <?php echo $author; ?>
00428                                 </td>
00429                                 <td>
00430                                 <?php echo $date; ?>
00431                                 </td>
00432                         </tr>
00433                         <?php
00434                         $k = 1 - $k;
00435                 }
00436                 ?>
00437                 </table>
00438 
00439                 <?php echo $pageNav->getListFooter(); ?>
00440 
00441                 <input type="hidden" name="option" value="<?php echo $option;?>" />
00442                 <input type="hidden" name="sectionid" value="<?php echo $section->id;?>" />
00443                 <input type="hidden" name="task" value="showarchive" />
00444                 <input type="hidden" name="returntask" value="showarchive" />
00445                 <input type="hidden" name="boxchecked" value="0" />
00446                 <input type="hidden" name="hidemainmenu" value="0" />
00447                 <input type="hidden" name="redirect" value="<?php echo $redirect;?>" />
00448                 <input type="hidden" name="<?php echo josSpoofValue(); ?>" value="1" />
00449                 </form>
00450                 <?php
00451         }
00452 
00453 
00462         function editContent( &$row, $section, &$lists, &$sectioncategories, &$images, &$params, $option, $redirect, &$menus ) {
00463                 global $database;
00464 
00465                 mosMakeHtmlSafe( $row );
00466 
00467                 $nullDate               = $database->getNullDate();
00468                 $create_date    = null;
00469 
00470                 if ( $row->created != $nullDate ) {
00471                         $create_date    = mosFormatDate( $row->created, '%A, %d %B %Y %H:%M', '0' );
00472                 }
00473                 $mod_date = null;
00474                 if ( $row->modified != $nullDate ) {
00475                         $mod_date               = mosFormatDate( $row->modified, '%A, %d %B %Y %H:%M', '0' );
00476                 }
00477 
00478                 $tabs = new mosTabs(1);
00479 
00480                 // used to hide "Reset Hits" when hits = 0
00481                 if ( !$row->hits ) {
00482                         $visibility = "style='display: none; visibility: hidden;'";
00483                 } else {
00484                         $visibility = "";
00485                 }
00486 
00487                 mosCommonHTML::loadOverlib();
00488                 mosCommonHTML::loadCalendar();
00489                 ?>
00490                 <script language="javascript" type="text/javascript">
00491                 <!--
00492                 var sectioncategories = new Array;
00493                 <?php
00494                 $i = 0;
00495                 foreach ($sectioncategories as $k=>$items) {
00496                         foreach ($items as $v) {
00497                                 echo "sectioncategories[".$i++."] = new Array( '$k','".addslashes( $v->id )."','".addslashes( $v->name )."' );\t";
00498                         }
00499                 }
00500                 ?>
00501 
00502                 var folderimages = new Array;
00503                 <?php
00504                 $i = 0;
00505                 foreach ($images as $k=>$items) {
00506                         foreach ($items as $v) {
00507                                 echo "folderimages[".$i++."] = new Array( '$k','".addslashes( ampReplace( $v->value ) )."','".addslashes( ampReplace( $v->text ) )."' );\t";
00508                         }
00509                 }
00510                 ?>
00511 
00512                 function submitbutton(pressbutton) {
00513                         var form = document.adminForm;
00514 
00515                         if ( pressbutton == 'menulink' ) {
00516                                 if ( form.menuselect.value == "" ) {
00517                                         alert( "Please select a Menu" );
00518                                         return;
00519                                 } else if ( form.link_name.value == "" ) {
00520                                         alert( "Please enter a Name for this menu item" );
00521                                         return;
00522                                 }
00523                         }
00524 
00525                         if (pressbutton == 'cancel') {
00526                                 submitform( pressbutton );
00527                                 return;
00528                         }
00529                         // assemble the images back into one field
00530                         var temp = new Array;
00531                         for (var i=0, n=form.imagelist.options.length; i < n; i++) {
00532                                 temp[i] = form.imagelist.options[i].value;
00533                         }
00534                         form.images.value = temp.join( '\n' );
00535 
00536                         // do field validation
00537                         if (form.title.value == ""){
00538                                 alert( "Content item must have a title" );
00539                         } else if (form.sectionid.value == "-1"){
00540                                 alert( "You must select a Section." );
00541                         } else if (form.catid.value == "-1"){
00542                                 alert( "You must select a Category." );
00543                         } else if (form.catid.value == ""){
00544                                 alert( "You must select a Category." );
00545                         } else {
00546                                 <?php getEditorContents( 'editor1', 'introtext' ) ; ?>
00547                                 <?php getEditorContents( 'editor2', 'fulltext' ) ; ?>
00548                                 submitform( pressbutton );
00549                         }
00550                 }
00551                 //-->
00552                 </script>
00553                 <form action="index2.php" method="post" name="adminForm">
00554                 <table class="adminheading">
00555                 <tr>
00556                         <th class="edit">
00557                         Content Item:
00558                         <small>
00559                         <?php echo $row->id ? 'Edit' : 'New';?>
00560                         </small>
00561                         <?php
00562                         if ( $row->id ) {
00563                                 ?>
00564                                 <small><small>
00565                                 [ Section: <?php echo $section; ?> ]
00566                                 </small></small>
00567                                 <?php
00568                         }
00569                         ?>
00570                         </th>
00571                 </tr>
00572                 </table>
00573 
00574                 <table cellspacing="0" cellpadding="0" width="100%">
00575                 <tr>
00576                         <td width="60%" valign="top">
00577                                 <table width="100%" class="adminform">
00578                                 <tr>
00579                                         <td width="100%">
00580                                                 <table cellspacing="0" cellpadding="0" border="0" width="100%">
00581                                                 <tr>
00582                                                         <th colspan="4">
00583                                                         Item Details
00584                                                         </th>
00585                                                 </tr>
00586                                                 <tr>
00587                                                         <td>
00588                                                         Title:
00589                                                         </td>
00590                                                         <td>
00591                                                         <input class="text_area" type="text" name="title" size="30" maxlength="100" value="<?php echo $row->title; ?>" />
00592                                                         </td>
00593                                                         <td>
00594                                                         Section:
00595                                                         </td>
00596                                                         <td>
00597                                                         <?php echo $lists['sectionid']; ?>
00598                                                         </td>
00599                                                 </tr>
00600                                                 <tr>
00601                                                         <td>
00602                                                         Title Alias:
00603                                                         </td>
00604                                                         <td>
00605                                                         <input name="title_alias" type="text" class="text_area" id="title_alias" value="<?php echo $row->title_alias; ?>" size="30" maxlength="100" />
00606                                                         </td>
00607                                                         <td>
00608                                                         Category:
00609                                                         </td>
00610                                                         <td>
00611                                                         <?php echo $lists['catid']; ?>
00612                                                         </td>
00613                                                 </tr>
00614                                                 </table>
00615                                         </td>
00616                                 </tr>
00617                                 <tr>
00618                                         <td width="100%">
00619                                         Intro Text: (required)
00620                                         <br /><?php
00621                                         // parameters : areaname, content, hidden field, width, height, rows, cols
00622                                         editorArea( 'editor1', $row->introtext, 'introtext', '100%;', '350', '75', '20' ) ; ?>
00623                                         </td>
00624                                 </tr>
00625                                 <tr>
00626                                         <td width="100%">
00627                                         Main Text: (optional)
00628                                         <br /><?php
00629                                         // parameters : areaname, content, hidden field, width, height, rows, cols
00630                                         editorArea( 'editor2', $row->fulltext, 'fulltext', '100%;', '400', '75', '30' ) ; ?>
00631                                         </td>
00632                                 </tr>
00633                                 </table>
00634                         </td>
00635                         <td valign="top" width="40%">
00636                                 <?php
00637                                 $tabs->startPane("content-pane");
00638                                 $tabs->startTab("Publishing","publish-page");
00639                                 ?>
00640                                 <table class="adminform">
00641                                 <tr>
00642                                         <th colspan="2">
00643                                         Publishing Info
00644                                         </th>
00645                                 </tr>
00646                                 <tr>
00647                                         <td valign="top" align="right" width="120">
00648                                         Show on Front Page:
00649                                         </td>
00650                                         <td>
00651                                         <input type="checkbox" name="frontpage" value="1" <?php echo $row->frontpage ? 'checked="checked"' : ''; ?> />
00652                                         </td>
00653                                 </tr>
00654                                 <tr>
00655                                         <td valign="top" align="right">
00656                                         Published:
00657                                         </td>
00658                                         <td>
00659                                         <input type="checkbox" name="published" value="1" <?php echo $row->state ? 'checked="checked"' : ''; ?> />
00660                                         </td>
00661                                 </tr>
00662                                 <tr>
00663                                         <td valign="top" align="right">
00664                                         Access Level:
00665                                         </td>
00666                                         <td>
00667                                         <?php echo $lists['access']; ?>
00668                                         </td>
00669                                 </tr>
00670                                 <tr>
00671                                         <td valign="top" align="right">
00672                                         Author Alias:
00673                                         </td>
00674                                         <td>
00675                                         <input type="text" name="created_by_alias" size="30" maxlength="100" value="<?php echo $row->created_by_alias; ?>" class="text_area" />
00676                                         </td>
00677                                 </tr>
00678                                 <tr>
00679                                         <td valign="top" align="right">
00680                                         Change Creator:
00681                                         </td>
00682                                         <td>
00683                                         <?php echo $lists['created_by']; ?>
00684                                         </td>
00685                                 </tr>
00686                                 <tr>
00687                                         <td valign="top" align="right">Ordering:</td>
00688                                         <td>
00689                                         <?php echo $lists['ordering']; ?>
00690                                         </td>
00691                                 </tr>
00692                                 <tr>
00693                                         <td valign="top" align="right">
00694                                         Override Created Date
00695                                         </td>
00696                                         <td>
00697                                         <input class="text_area" type="text" name="created" id="created" size="25" maxlength="19" value="<?php echo $row->created; ?>" />
00698                                         <input name="reset" type="reset" class="button" onclick="return showCalendar('created', 'y-mm-dd');" value="..." />
00699                                         </td>
00700                                 </tr>
00701                                 <tr>
00702                                         <td valign="top" align="right">
00703                                         Start Publishing:
00704                                         </td>
00705                                         <td>
00706                                         <input class="text_area" type="text" name="publish_up" id="publish_up" size="25" maxlength="19" value="<?php echo $row->publish_up; ?>" />
00707                                         <input type="reset" class="button" value="..." onclick="return showCalendar('publish_up', 'y-mm-dd');" />
00708                                         </td>
00709                                 </tr>
00710                                 <tr>
00711                                         <td valign="top" align="right">
00712                                         Finish Publishing:
00713                                         </td>
00714                                         <td>
00715                                         <input class="text_area" type="text" name="publish_down" id="publish_down" size="25" maxlength="19" value="<?php echo $row->publish_down; ?>" />
00716                                         <input type="reset" class="button" value="..." onclick="return showCalendar('publish_down', 'y-mm-dd');" />
00717                                         </td>
00718                                 </tr>
00719                                 </table>
00720                                 <br />
00721                                 <table class="adminform">
00722                                 <?php
00723                                 if ( $row->id ) {
00724                                         ?>
00725                                         <tr>
00726                                                 <td>
00727                                                 <strong>Content ID:</strong>
00728                                                 </td>
00729                                                 <td>
00730                                                 <?php echo $row->id; ?>
00731                                                 </td>
00732                                         </tr>
00733                                         <?php
00734                                 }
00735                                 ?>
00736                                 <tr>
00737                                         <td width="120" valign="top" align="right">
00738                                         <strong>State:</strong>
00739                                         </td>
00740                                         <td>
00741                                         <?php echo $row->state > 0 ? 'Published' : ($row->state < 0 ? 'Archived' : 'Draft Unpublished');?>
00742                                         </td>
00743                                 </tr>
00744                                 <tr >
00745                                         <td valign="top" align="right">
00746                                         <strong>
00747                                         Hits
00748                                         </strong>:
00749                                         </td>
00750                                         <td>
00751                                         <?php echo $row->hits;?>
00752                                         <div <?php echo $visibility; ?>>
00753                                         <input name="reset_hits" type="button" class="button" value="Reset Hit Count" onclick="submitbutton('resethits');" />
00754                                         </div>
00755                                         </td>
00756                                 </tr>
00757                                 <tr>
00758                                         <td valign="top" align="right">
00759                                         <strong>
00760                                         Revised
00761                                         </strong>:
00762                                         </td>
00763                                         <td>
00764                                         <?php echo $row->version;?> times
00765                                         </td>
00766                                 </tr>
00767                                 <tr>
00768                                         <td valign="top" align="right">
00769                                         <strong>
00770                                         Created
00771                                         </strong>
00772                                         </td>
00773                                         <td>
00774                                                 <?php
00775                                                 if ( !$create_date ) {
00776                                                         ?>
00777                                                         New document
00778                                                         <?php
00779                                                 } else {
00780                                                         echo $create_date;
00781                                                 }
00782                                                 ?>
00783                                         </td>
00784                                 </tr>
00785                                 <tr>
00786                                         <td valign="top" align="right">
00787                                         <strong>
00788                                         Last Modified
00789                                         </strong>
00790                                         </td>
00791                                         <td>
00792                                                 <?php
00793                                                 if ( !$mod_date ) {
00794                                                         ?>
00795                                                         Not modified
00796                                                         <?php
00797                                                 } else {
00798                                                         echo $mod_date;
00799                                                         ?>
00800                                                         <br />
00801                                                         <?php
00802                                                         echo $row->modifier;
00803                                                 }
00804                                                 ?>
00805                                         </td>
00806                                 </tr>
00807                                 </table>
00808                                 <?php
00809                                 $tabs->endTab();
00810                                 $tabs->startTab("Images","images-page");
00811                                 ?>
00812                                 <table class="adminform" width="100%">
00813                                 <tr>
00814                                         <th colspan="2">
00815                                                 MOSImage Control
00816                                         </th>
00817                                 </tr>
00818                                 <tr>
00819                                         <td colspan="2">
00820                                                 <table width="100%">
00821                                                 <tr>
00822                                                         <td width="48%" valign="top">
00823                                                                 <div align="center">
00824                                                                         Gallery Images:
00825                                                                         <br />
00826                                                                         <?php echo $lists['imagefiles'];?>
00827                                                                 </div>
00828                                                         </td>
00829                                                         <td width="2%">
00830                                                                 <input class="button" type="button" value=">>" onclick="addSelectedToList('adminForm','imagefiles','imagelist')" title="Add" />
00831                                                                 <br />
00832                                                                 <input class="button" type="button" value="<<" onclick="delSelectedFromList('adminForm','imagelist')" title="Remove" />
00833                                                         </td>
00834                                                         <td width="48%">
00835                                                                 <div align="center">
00836                                                                         Content Images:
00837                                                                         <br />
00838                                                                         <?php echo $lists['imagelist'];?>
00839                                                                         <br />
00840                                                                         <input class="button" type="button" value="Up" onclick="moveInList('adminForm','imagelist',adminForm.imagelist.selectedIndex,-1)" />
00841                                                                         <input class="button" type="button" value="Down" onclick="moveInList('adminForm','imagelist',adminForm.imagelist.selectedIndex,+1)" />
00842                                                                 </div>
00843                                                         </td>
00844                                                 </tr>
00845                                                 </table>
00846                                                 Sub-folder: <?php echo $lists['folders'];?>
00847                                         </td>
00848                                 </tr>
00849                                 <tr valign="top">
00850                                         <td>
00851                                                 <div align="center">
00852                                                         Sample Image:<br />
00853                                                         <img name="view_imagefiles" src="../images/M_images/blank.png" alt="Sample Image" width="100" />
00854                                                 </div>
00855                                         </td>
00856                                         <td valign="top">
00857                                                 <div align="center">
00858                                                         Active Image:<br />
00859                                                         <img name="view_imagelist" src="../images/M_images/blank.png" alt="Active Image" width="100" />
00860                                                 </div>
00861                                         </td>
00862                                 </tr>
00863                                 <tr>
00864                                         <td colspan="2">
00865                                                 Edit the image selected:
00866                                                 <table>
00867                                                 <tr>
00868                                                         <td align="right">
00869                                                         Source:
00870                                                         </td>
00871                                                         <td>
00872                                                         <input class="text_area" type="text" name= "_source" value="" />
00873                                                         </td>
00874                                                 </tr>
00875                                                 <tr>
00876                                                         <td align="right">
00877                                                         Image Align:
00878                                                         </td>
00879                                                         <td>
00880                                                         <?php echo $lists['_align']; ?>
00881                                                         </td>
00882                                                 </tr>
00883                                                 <tr>
00884                                                         <td align="right">
00885                                                         Alt Text:
00886                                                         </td>
00887                                                         <td>
00888                                                         <input class="text_area" type="text" name="_alt" value="" />
00889                                                         </td>
00890                                                 </tr>
00891                                                 <tr>
00892                                                         <td align="right">
00893                                                         Border:
00894                                                         </td>
00895                                                         <td>
00896                                                         <input class="text_area" type="text" name="_border" value="" size="3" maxlength="1" />
00897                                                         </td>
00898                                                 </tr>
00899                                                 <tr>
00900                                                         <td align="right">
00901                                                         Caption:
00902                                                         </td>
00903                                                         <td>
00904                                                         <input class="text_area" type="text" name="_caption" value="" size="30" />
00905                                                         </td>
00906                                                 </tr>
00907                                                 <tr>
00908                                                         <td align="right">
00909                                                         Caption Position:
00910                                                         </td>
00911                                                         <td>
00912                                                         <?php echo $lists['_caption_position']; ?>
00913                                                         </td>
00914                                                 </tr>
00915                                                 <tr>
00916                                                         <td align="right">
00917                                                         Caption Align:
00918                                                         </td>
00919                                                         <td>
00920                                                         <?php echo $lists['_caption_align']; ?>
00921                                                         </td>
00922                                                 </tr>
00923                                                 <tr>
00924                                                         <td align="right">
00925                                                         Caption Width:
00926                                                         </td>
00927                                                         <td>
00928                                                         <input class="text_area" type="text" name="_width" value="" size="5" maxlength="5" />
00929                                                         </td>
00930                                                 </tr>
00931                                                 <tr>
00932                                                         <td colspan="2">
00933                                                         <input class="button" type="button" value="Apply" onclick="applyImageProps()" />
00934                                                         </td>
00935                                                 </tr>
00936                                                 </table>
00937                                         </td>
00938                                 </tr>
00939                                 </table>
00940                                 <?php
00941                                 $tabs->endTab();
00942                                 $tabs->startTab("Parameters","params-page");
00943                                 ?>
00944                                 <table class="adminform">
00945                                 <tr>
00946                                         <th colspan="2">
00947                                         Parameter Control
00948                                         </th>
00949                                 </tr>
00950                                 <tr>
00951                                         <td>
00952                                         * These Parameters only control what you see when you click to view an item fully *
00953                                         <br /><br />
00954                                         </td>
00955                                 </tr>
00956                                 <tr>
00957                                         <td>
00958                                         <?php echo $params->render();?>
00959                                         </td>
00960                                 </tr>
00961                                 </table>
00962                                 <?php
00963                                 $tabs->endTab();
00964                                 $tabs->startTab("Meta Info","metadata-page");
00965                                 ?>
00966                                 <table class="adminform">
00967                                 <tr>
00968                                         <th colspan="2">
00969                                         Meta Data
00970                                         </th>
00971                                 </tr>
00972                                 <tr>
00973                                         <td>
00974                                         Description:
00975                                         <br />
00976                                         <textarea class="text_area" cols="30" rows="3" style="width: 350px; height: 50px" name="metadesc"><?php echo str_replace('&','&amp;',$row->metadesc); ?></textarea>
00977                                         </td>
00978                                 </tr>
00979                                         <tr>
00980                                         <td>
00981                                         Keywords:
00982                                         <br />
00983                                         <textarea class="text_area" cols="30" rows="3" style="width: 350px; height: 50px" name="metakey"><?php echo str_replace('&','&amp;',$row->metakey); ?></textarea>
00984                                         </td>
00985                                 </tr>
00986                                 <tr>
00987                                         <td>
00988                                         <input type="button" class="button" value="Add Sect/Cat/Title" onclick="f=document.adminForm;f.metakey.value=document.adminForm.sectionid.options[document.adminForm.sectionid.selectedIndex].text+', '+getSelectedText('adminForm','catid')+', '+f.title.value+f.metakey.value;" />
00989                                         </td>
00990                                 </tr>
00991                                 </table>
00992                                 <?php
00993                                 $tabs->endTab();
00994                                 $tabs->startTab("Link to Menu","link-page");
00995                                 ?>
00996                                 <table class="adminform">
00997                                 <tr>
00998                                         <th colspan="2">
00999                                         Link to Menu
01000                                         </th>
01001                                 </tr>
01002                                 <tr>
01003                                         <td colspan="2">
01004                                         This will create a 'Link - Content Item' in the menu you select
01005                                         <br /><br />
01006                                         </td>
01007                                 </tr>
01008                                 <tr>
01009                                         <td valign="top" width="90">
01010                                         Select a Menu
01011                                         </td>
01012                                         <td>
01013                                         <?php echo $lists['menuselect']; ?>
01014                                         </td>
01015                                 </tr>
01016                                 <tr>
01017                                         <td valign="top" width="90">
01018                                         Menu Item Name
01019                                         </td>
01020                                         <td>
01021                                         <input type="text" name="link_name" class="inputbox" value="" size="30" />
01022                                         </td>
01023                                 </tr>
01024                                 <tr>
01025                                         <td>
01026                                         </td>
01027                                         <td>
01028                                         <input name="menu_link" type="button" class="button" value="Link to Menu" onclick="submitbutton('me