| [ Index ] | PHP Cross Reference of Mambo 4.6.5 |
|
| [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * @package Mambo 4 * @subpackage Content 5 * @author Mambo Foundation Inc see README.php 6 * @copyright (C) 2000 - 2009 Mambo Foundation Inc. 7 * See COPYRIGHT.php for copyright notices and details. 8 * @license GNU/GPL Version 2, see LICENSE.php 9 * 10 * Redistributions of files must retain the above copyright notice. 11 * 12 * Mambo is free software; you can redistribute it and/or 13 * modify it under the terms of the GNU General Public License 14 * as published by the Free Software Foundation; version 2 of the License. 15 */ 16 17 /** ensure this file is being included by a parent file */ 18 defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); 19 20 class HTML_typedcontent { 21 22 /** 23 * Writes a list of the content items 24 * @param array An array of content objects 25 */ 26 function showContent( &$rows, &$pageNav, $option, $search, &$lists ) { 27 global $my, $acl; 28 29 mosCommonHTML::loadOverlib(); 30 ?> 31 <form action="index2.php" method="post" name="adminForm"> 32 33 <table class="adminheading"> 34 <tr> 35 <th class="edit"> 36 <?php echo T_('Static Content Manager'); ?> 37 </th> 38 <td> 39 <?php echo T_('Filter:'); ?> 40 </td> 41 <td> 42 <input type="text" name="search" value="<?php echo $search;?>" class="text_area" onChange="document.adminForm.submit();" /> 43 </td> 44 <td> 45 <?php echo T_('Order:'); ?> 46 </td> 47 <td> 48 <?php echo $lists['order']; ?> 49 </td> 50 <td width="right"> 51 <?php echo $lists['authorid'];?> 52 </td> 53 </tr> 54 </table> 55 56 <table class="adminlist"> 57 <tr> 58 <th width="5"> 59 # 60 </th> 61 <th width="5px"> 62 <input type="checkbox" name="toggle" value="" onClick="checkAll(<?php echo count( $rows ); ?>);" /> 63 </th> 64 <th class="title"> 65 <?php echo T_('Title'); ?> 66 </th> 67 <th width="5%"> 68 <?php echo T_('Published'); ?> 69 </th> 70 <th nowrap="nowrap" width="5%"> 71 <?php echo T_('Front Page'); ?> 72 </th> 73 <th width="2%"> 74 <?php echo T_('Order'); ?> 75 </th> 76 <th width="1%"> 77 <a href="javascript: saveorder( <?php echo count( $rows )-1; ?> )"><img src="images/filesave.png" border="0" width="16" height="16" alt="<?php echo T_('Save Order'); ?>" /></a> 78 </th> 79 <th width="10%"> 80 <?php echo T_('Access'); ?> 81 </th> 82 <th width="5%"> 83 <?php echo T_('ID'); ?> 84 </th> 85 <th width="1%" align="left"> 86 <?php echo T_('Links'); ?> 87 </th> 88 <th width="20%" align="left"> 89 <?php echo T_('Author'); ?> 90 </th> 91 <th align="center" width="10"> 92 <?php echo T_('Date'); ?> 93 </th> 94 </tr> 95 <?php 96 $k = 0; 97 for ($i=0, $n=count( $rows ); $i < $n; $i++) { 98 $row = &$rows[$i]; 99 100 $now = date( "Y-m-d H:i:s" ); 101 if ( $now <= $row->publish_up && $row->state == "1" ) { 102 $img = 'publish_y.png'; 103 $alt = T_('Published'); 104 } else if ( ( $now <= $row->publish_down || $row->publish_down == "0000-00-00 00:00:00" ) && $row->state == "1" ) { 105 $img = 'publish_g.png'; 106 $alt = T_('Published'); 107 } else if ( $now > $row->publish_down && $row->state == "1" ) { 108 $img = 'publish_r.png'; 109 $alt = T_('Expired'); 110 } elseif ( $row->state == "0" ) { 111 $img = "publish_x.png"; 112 $alt = T_('Unpublished'); 113 } 114 $times = ''; 115 if (isset($row->publish_up)) { 116 if ($row->publish_up == '0000-00-00 00:00:00') { 117 $times .= "<tr><td>".T_('Start:')." ".T_('Always')."</td></tr>"; 118 } else { 119 $times .= "<tr><td>".T_('Start:')." $row->publish_up</td></tr>"; 120 } 121 } 122 if (isset($row->publish_down)) { 123 if ($row->publish_down == '0000-00-00 00:00:00') { 124 $times .= "<tr><td>".T_('Finish:')." ".T_('No Expiry')."</td></tr>"; 125 } else { 126 $times .= "<tr><td>".T_('Finish:')." $row->publish_down</td></tr>"; 127 } 128 } 129 130 if ( !$row->access ) { 131 $color_access = 'style="color: green;"'; 132 $task_access = 'accessregistered'; 133 } else if ( $row->access == 1 ) { 134 $color_access = 'style="color: red;"'; 135 $task_access = 'accessspecial'; 136 } else { 137 $color_access = 'style="color: black;"'; 138 $task_access = 'accesspublic'; 139 } 140 141 $link = 'index2.php?option=com_typedcontent&task=edit&hidemainmenu=1&id='. $row->id; 142 143 if ( $row->checked_out ) { 144 $checked = mosCommonHTML::checkedOut( $row ); 145 } else { 146 $checked = mosHTML::idBox( $i, $row->id, ($row->checked_out && $row->checked_out != $my->id ) ); 147 } 148 149 if ( $acl->acl_check( 'administration', 'manage', 'users', $my->usertype, 'components', 'com_users' ) ) { 150 if ( $row->created_by_alias ) { 151 $author = $row->created_by_alias; 152 } else { 153 $linkA = 'index2.php?option=com_users&task=editA&hidemainmenu=1&id='. $row->created_by; 154 $author = '<a href="'. $linkA .'" title="'.T_('Edit User').'">'. $row->creator .'</a>'; 155 } 156 } else { 157 if ( $row->created_by_alias ) { 158 $author = $row->created_by_alias; 159 } else { 160 $author = $row->creator; 161 } 162 } 163 164 $date = mosFormatDate( $row->created, '%x' ); 165 ?> 166 <tr class="<?php echo "row$k"; ?>"> 167 <td> 168 <?php echo $pageNav->rowNumber( $i ); ?> 169 </td> 170 <td> 171 <?php echo $checked; ?> 172 </td> 173 <td> 174 <?php 175 if ( $row->checked_out && ( $row->checked_out != $my->id ) ) { 176 echo $row->title; 177 if ( $row->title_alias ) { 178 echo ' (<i>'. $row->title_alias .'</i>)'; 179 } 180 } else { 181 ?> 182 <a href="<?php echo $link; ?>" title="<?php echo T_('Edit Static Content'); ?>"> 183 <?php 184 echo $row->title; 185 if ( $row->title_alias ) { 186 echo ' (<i>'. $row->title_alias .'</i>)'; 187 } 188 ?> 189 </a> 190 <?php 191 } 192 ?> 193 </td> 194 <?php 195 if ( $times ) { 196 ?> 197 <td align="center"> 198 <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";?>')"> 199 <img src="images/<?php echo $img;?>" width="12" height="12" border="0" alt="<?php echo $alt; ?>" /> 200 </a> 201 </td> 202 <?php 203 } 204 ?> 205 <td align="center"> 206 <a href="javascript: void(0);" onClick="return listItemTask('cb<?php echo $i;?>','toggle_frontpage')"> 207 <img src="images/<?php echo ( $row->frontpage ) ? 'tick.png' : 'publish_x.png';?>" width="12" height="12" border="0" alt="<?php echo ( $row->frontpage ) ? T_('Yes') : T_('No');?>" /> 208 </a> 209 </td> 210 <td align="center" colspan="2"> 211 <input type="text" name="order[]" size="5" value="<?php echo $row->ordering; ?>" class="text_area" style="text-align: center" /> 212 </td> 213 <td align="center"> 214 <a href="javascript: void(0);" onclick="return listItemTask('cb<?php echo $i;?>','<?php echo $task_access;?>')" <?php echo $color_access; ?>> 215 <?php echo $row->groupname;?> 216 </a> 217 </td> 218 <td align="center"> 219 <?php echo $row->id;?> 220 </td> 221 <td align="center"> 222 <?php echo $row->links;?> 223 </td> 224 <td align="left"> 225 <?php echo $author;?> 226 </td> 227 <td> 228 <?php echo $date; ?> 229 </td> 230 </tr> 231 <?php 232 $k = 1 - $k; 233 } 234 ?> 235 </table> 236 237 <?php echo $pageNav->getListFooter(); ?> 238 <?php mosCommonHTML::ContentLegend(); ?> 239 240 <input type="hidden" name="option" value="<?php echo $option;?>" /> 241 <input type="hidden" name="task" value="" /> 242 <input type="hidden" name="boxchecked" value="0" /> 243 <input type="hidden" name="hidemainmenu" value="0" /> 244 </form> 245 <?php 246 } 247 248 function edit( &$row, &$images, &$lists, &$params, $option, &$menus ) { 249 global $mosConfig_live_site; 250 251 //mosMakeHtmlSafe( $row ); 252 $tabs = new mosTabs( 1 ); 253 // used to hide "Reset Hits" when hits = 0 254 if ( !$row->hits ) { 255 $visibility = "style='display: none; visbility: hidden;'"; 256 } else { 257 $visibility = ""; 258 } 259 260 mosCommonHTML::loadOverlib(); 261 mosCommonHTML::loadCalendar(); 262 ?> 263 <script type="text/javascript"> 264 var folderimages = new Array; 265 <?php 266 $i = 0; 267 foreach ($images as $k=>$items) { 268 foreach ($items as $v) { 269 echo "\n folderimages[".$i++."] = new Array( '$k','".addslashes( $v->value )."','".addslashes( $v->text )."' );"; 270 } 271 } 272 ?> 273 function submitbutton(pressbutton) { 274 var form = document.adminForm; 275 if (pressbutton == 'cancel') { 276 submitform( pressbutton ); 277 return; 278 } 279 280 if ( pressbutton ==' resethits' ) { 281 if (confirm('<?php echo T_('Are you sure you want to reset the Hits to Zero? \nAny unsaved changes to this content will be lost.'); ?>')){ 282 submitform( pressbutton ); 283 return; 284 } else { 285 return; 286 } 287 } 288 289 if ( pressbutton == 'menulink' ) { 290 if ( form.menuselect.value == "" ) { 291 alert( "<?php echo T_('Please select a Menu'); ?>" ); 292 return; 293 } else if ( form.link_name.value == "" ) { 294 alert( "<?php echo T_('Please enter a Name for this menu item'); ?>" ); 295 return; 296 } 297 } 298 299 var temp = new Array; 300 for (var i=0, n=form.imagelist.options.length; i < n; i++) { 301 temp[i] = form.imagelist.options[i].value; 302 } 303 form.images.value = temp.join( '\n' ); 304 305 try { 306 document.adminForm.onsubmit(); 307 } 308 catch(e){} 309 if (trim(form.title.value) == ""){ 310 alert( "<?php echo T_('Content item must have a title'); ?>" ); 311 } else if (trim(form.name.value) == ""){ 312 alert( "<?php echo T_('Content item must have a name'); ?>" ); 313 } else { 314 if ( form.reset_hits.checked ) { 315 form.hits.value = 0; 316 } else { 317 } 318 <?php getEditorContents( 'editor1', 'introtext' ) ; ?> 319 submitform( pressbutton ); 320 } 321 } 322 323 // show / hide publishing information 324 function displayParameterInfo() 325 { 326 327 if(document.getElementById('simpleediting').style.display == 'block') 328 { 329 document.getElementById('simpleediting').style.display = 'none'; 330 document.getElementById('show').style.display = 'block'; 331 document.getElementById('hide').style.display = 'none'; 332 document.adminForm.simple_editing.value ='on'; 333 } 334 else 335 { 336 document.getElementById('simpleediting').style.display = 'block'; 337 document.getElementById('show').style.display = 'none'; 338 document.getElementById('hide').style.display = 'block'; 339 document.adminForm.simple_editing.value ='off'; 340 } 341 342 } 343 </script> 344 <?php 345 if($_SESSION['simple_editing'] == 'on') 346 { 347 348 $simpleediting ='none'; 349 $simple = 'block'; 350 $advanced = 'none'; 351 } 352 else 353 { 354 $advanced = 'block'; 355 $simple = 'none'; 356 $simpleediting ='block'; 357 } 358 359 ?> 360 <table class="adminheading"> 361 <tr> 362 <th class="edit"> 363 <?php echo T_('Static Content Item:'); ?> 364 <small> 365 <?php echo $row->id ? T_('Edit') : T_('New');?> 366 </small> 367 </th> 368 </tr> 369 </table> 370 <table width="100%"> 371 <tr> 372 <td valign="top" align="right"> 373 <div id = "show" style="display:<?php echo $simple;?>"> 374 <a href="javascript:displayParameterInfo();"><?php echo T_('Show Advanced Details'); ?></a> 375 </div> 376 <div id = "hide" style="display:<?php echo $advanced;?>"> 377 <a href="javascript:displayParameterInfo();"><?php echo T_('Hide Advanced Details'); ?></a> 378 </div> 379 </td> 380 </tr> 381 </table> 382 <form action="index2.php" method="post" name="adminForm"> 383 <input type ="hidden" name="simple_editing" value=''> 384 385 <table cellspacing="0" cellpadding="0" border="0" width="100%"> 386 <tr> 387 <td valign="top"> 388 <table class="adminform"> 389 <tr> 390 <th colspan="3"> 391 <?php echo T_('Item Details'); ?> 392 </th> 393 <tr> 394 <tr> 395 <td align="left"> 396 <?php echo T_('Title:'); ?> 397 </td> 398 <td> 399 <input class="inputbox" type="text" name="title" size="30" maxlength="100" value="<?php echo $row->title; ?>" /> 400 </td> 401 </tr> 402 <tr> 403 <td align="left"> 404 <?php echo T_('Title Alias:'); ?> 405 </td> 406 <td> 407 <input class="inputbox" type="text" name="title_alias" size="30" maxlength="100" value="<?php echo $row->title_alias; ?>" /> 408 </td> 409 </tr> 410 <tr> 411 <td valign="top" align="left" colspan="2"> 412 <?php echo T_('Text: (required)'); ?><br /> 413 <?php 414 // parameters : areaname, content, hidden field, width, height, rows, cols 415 editorArea( 'editor1', $row->introtext, 'introtext', '100%;', '400', '65', '50' ); 416 ?> 417 </td> 418 </tr> 419 </table> 420 </td> 421 422 <td valign="top" align="right"> 423 <div id="simpleediting" style="display:<?php echo $simpleediting;?>"> 424 <table width="100%" > 425 <tr> 426 <td width="200"> 427 428 <table width="400"> 429 <tr> 430 <td > 431 <?php 432 $tabs->startPane("content-pane"); 433 $tabs->startTab(T_("Publishing"),"publish-page"); 434 ?> 435 <table class="adminform"> 436 <tr> 437 <th colspan="2"> 438 <?php echo T_('Publishing Info'); ?> 439 </th> 440 <tr> 441 <tr> 442 <td valign="top" align="right"> 443 <?php echo T_('State:'); ?> 444 </td> 445 <td> 446 <?php echo $row->state > 0 ? 'Published' : 'Draft Unpublished'; ?> 447 </td> 448 </tr> 449 <tr> 450 <td valign="top" align="right"> 451 <?php echo T_('Published:'); ?> 452 </td> 453 <td> 454 <input type="checkbox" name="published" value="1" <?php echo $row->state ? 'checked="checked"' : ''; ?> /> 455 </td> 456 </tr> 457 <tr> 458 <td valign="top" align="right"> 459 <?php echo T_('Show on Frontpage:'); ?> 460 </td> 461 <td> 462 <input type="checkbox" name="frontpage" value="1" <?php echo $row->frontpage ? 'checked="checked"' : ''; ?> /> 463 </td> 464 </tr> 465 <tr> 466 <td valign="top" align="right"> 467 <?php echo T_('Access Level:'); ?> 468 </td> 469 <td> 470 <?php echo $lists['access']; ?> 471 </td> 472 </tr> 473 <tr> 474 <td valign="top" align="right"> 475 <?php echo T_('Author Alias:'); ?> 476 </td> 477 <td> 478 <input type="text" name="created_by_alias" size="30" maxlength="100" value="<?php echo $row->created_by_alias; ?>" class="inputbox" /> 479 </td> 480 </tr> 481 <tr> 482 <td valign="top" align="right"> 483 <?php echo T_('Change Creator:'); ?> 484 </td> 485 <td> 486 <?php echo $lists['created_by']; ?> 487 </td> 488 </tr> 489 <tr> 490 <td valign="top" align="right"> 491 <?php echo T_('Override Created Date'); ?> 492 </td> 493 <td> 494 <input class="inputbox" type="text" name="created" id="created" size="25" maxlength="19" value="<?php echo $row->created; ?>" /> 495 <input name="reset" type="reset" class="button" onClick="return showCalendar('created', 'y-mm-dd');" value="..."> 496 </td> 497 </tr> 498 <tr> 499 <td width="20%" align="right"> 500 <?php echo T_('Start Publishing:'); ?> 501 </td> 502 <td width="80%"> 503 <input class="inputbox" type="text" name="publish_up" id="publish_up" size="25" maxlength="19" value="<?php echo $row->publish_up; ?>" /> 504 <input type="reset" class="button" value="..." onclick="return showCalendar('publish_up', 'y-mm-dd');"> 505 </td> 506 </tr> 507 <tr> 508 <td width="20%" align="right"> 509 <?php echo T_('Finish Publishing:'); ?> 510 </td> 511 <td width="80%"> 512 <input class="inputbox" type="text" name="publish_down" id="publish_down" size="25" maxlength="19" value="<?php echo $row->publish_down; ?>" /> 513 <input type="reset" class="button" value="..." onclick="return showCalendar('publish_down', 'y-mm-dd');"> 514 </td> 515 </tr> 516 </table> 517 <br /> 518 <table class="adminform"> 519 <?php 520 if ( $row->id ) { 521 ?> 522 <tr> 523 <td> 524 <strong><?php echo T_('Content ID:'); ?></strong> 525 </td> 526 <td> 527 <?php echo $row->id; ?> 528 </td> 529 </tr> 530 <?php 531 } 532 ?> 533 <tr> 534 <td width="90px" valign="top" align="right"> 535 <strong><?php echo T_('State:'); ?></strong> 536 </td> 537 <td> 538 <?php echo $row->state > 0 ? T_('Published') : ($row->state < 0 ? T_('Archived') : T_('Draft Unpublished'));?> 539 </td> 540 </tr> 541 <tr> 542 <td valign="top" align="right"> 543 <strong><?php echo T_('Hits'); ?></strong> 544 </td> 545 <td> 546 <?php echo $row->hits;?> 547 <div <?php echo $visibility; ?>> 548 <input name="reset_hits" type="button" class="button" value="<?php echo T_('Reset Hit Count'); ?>" onClick="submitbutton('resethits');"> 549 </div> 550 </td> 551 </tr> 552 <tr> 553 <td valign="top" align="right"> 554 <strong><?php echo T_('Version'); ?></strong> 555 </td> 556 <td> 557 <?php echo "$row->version";?> 558 </td> 559 </tr> 560 <tr> 561 <td valign="top" align="right"> 562 <strong><?php echo T_('Created'); ?></strong> 563 </td> 564 <td> 565 <?php echo $row->created ? "$row->created</td></tr><tr><td valign='top' align='right'><strong>".T_('By')."</strong></td><td>$row->creator" : T_("New document");?> 566 </td> 567 </tr> 568 <tr> 569 <td valign="top" align="right"> 570 <strong><?php echo T_('Last Modified'); ?></strong> 571 </td> 572 <td> 573 <?php echo $row->modified ? "$row->modified</td></tr><tr><td valign='top' align='right'><strong>".T_('By')."</strong></td><td>$row->modifier" : T_("Not modified");?> 574 </td> 575 </tr> 576 <tr> 577 <td valign="top" align="right"> 578 <strong><?php echo T_('Expires'); ?></strong> 579 </td> 580 <td> 581 <?php echo "$row->publish_down";?> 582 </td> 583 </tr> 584 </table> 585 <?php 586 $tabs->endTab(); 587 $tabs->startTab(T_("Images"),"images-page"); 588 ?> 589 <table class="adminform"> 590 <tr> 591 <th colspan="2"> 592 <?php echo T_('MOSImage Control'); ?> 593 </th> 594 <tr> 595 <tr> 596 <td colspan="6"> 597 <?php echo T_('Sub-folder:'); ?> <?php echo $lists['folders'];?> 598 </td> 599 </tr> 600 <tr> 601 <td> 602 <?php echo T_('Gallery Images'); ?> 603 <br /> 604 <?php echo $lists['imagefiles'];?> 605 <br /> 606 <input class="button" type="button" value="<?php echo T_('Add'); ?>" onClick="addSelectedToList('adminForm','imagefiles','imagelist')" /> 607 </td> 608 <td valign="top"> 609 <img name="view_imagefiles" src="../images/M_images/blank.png" width="100" /> 610 </td> 611 </tr> 612 <tr> 613 <td> 614 <?php echo T_('Content Images:'); ?> 615 <br /> 616 <?php echo $lists['imagelist'];?> 617 <br /> 618 <input class="button" type="button" value="<?php echo T_('up'); ?>" onClick="moveInList('adminForm','imagelist',adminForm.imagelist.selectedIndex,-1)" /> 619 <input class="button" type="button" value="<?php echo T_('down'); ?>" onClick="moveInList('adminForm','imagelist',adminForm.imagelist.selectedIndex,+1)" /> 620 <input class="button" type="button" value="<?php echo T_('remove'); ?>" onClick="delSelectedFromList('adminForm','imagelist')" /> 621 </td> 622 <td valign="top"> 623 <img name="view_imagelist" src="../images/M_images/blank.png" width="100" /> 624 </td> 625 </tr> 626 <tr> 627 <td> 628 <?php echo T_('Edit the image selected:'); ?> 629 <table> 630 <tr> 631 <td align="right"> 632 <?php echo T_('Source'); ?> 633 </td> 634 <td> 635 <input type="text" name= "_source" value="" /> 636 </td> 637 </tr> 638 <tr> 639 <td align="right"> 640 <?php echo T_('Align'); ?> 641 </td> 642 <td> 643 <?php echo $lists['_align']; ?> 644 </td> 645 </tr> 646 <tr> 647 <td align="right"> 648 <?php echo T_('Alt Text'); ?> 649 </td> 650 <td> 651 <input type="text" name="_alt" value="" /> 652 </td> 653 </tr> 654 <tr> 655 <td align="right"> 656 <?php echo T_('Border'); ?> 657 </td> 658 <td> 659 <input type="text" name="_border" value="" size="3" maxlength="1" /> 660 </td> 661 </tr> 662 <tr> 663 <td align="right"> 664 <?php echo T_('Caption:'); ?> 665 </td> 666 <td> 667 <input class="text_area" type="text" name="_caption" value="" size="30" /> 668 </td> 669 </tr> 670 <tr> 671 <td align="right"> 672 <?php echo T_('Caption Position:'); ?> 673 </td> 674 <td> 675 <?php echo $lists['_caption_position']; ?> 676 </td> 677 </tr> 678 <tr> 679 <td align="right"> 680 <?php echo T_('Caption Align:'); ?> 681 </td> 682 <td> 683 <?php echo $lists['_caption_align']; ?> 684 </td> 685 </tr> 686 <tr> 687 <td align="right"> 688 <?php echo T_('Width:'); ?> 689 </td> 690 <td> 691 <input class="text_area" type="text" name="_width" value="" size="5" maxlength="5" /> 692 </td> 693 </tr> 694 <tr> 695 <td colspan="2"> 696 <input class="button" type="button" value="<?php echo T_('Apply'); ?>" onClick="applyImageProps()" /> 697 </td> 698 </tr> 699 </table> 700 </td> 701 </tr> 702 </table> 703 <?php 704 $tabs->endTab(); 705 $tabs->startTab(T_("Parameters"),"params-page"); 706 ?> 707 <table class="adminform"> 708 <tr> 709 <th colspan="2"> 710 <?php echo T_('Parameter Control'); ?> 711 </th> 712 <tr> 713 <tr> 714 <td> 715 <?php echo $params->render();?> 716 </td> 717 </tr> 718 </table> 719 <?php 720 $tabs->endTab(); 721 $tabs->startTab(T_("Meta Info"),"metadata-page"); 722 ?> 723 <table class="adminform"> 724 <tr> 725 <th colspan="2"> 726 <?php echo T_('Meta Data'); ?> 727 </th> 728 <tr> 729 <tr> 730 <td align="left"> 731 <?php echo T_('Description:'); ?><br /> 732 <textarea class="inputbox" cols="40" rows="5" name="metadesc" style="width:300px"><?php echo str_replace('&','&',$row->metadesc); ?></textarea> 733 </td> 734 </tr> 735 <tr> 736 <td align="left"> 737 <?php echo T_('Keywords:'); ?><br /> 738 <textarea class="inputbox" cols="40" rows="5" name="metakey" style="width:300px"><?php echo str_replace('&','&',$row->metakey); ?></textarea> 739 </td> 740 </tr> 741 </table> 742 <?php 743 $tabs->endTab(); 744 $tabs->startTab(T_("Link to Menu"),"link-page"); 745 ?> 746 <table class="adminform"> 747 <tr> 748 <th colspan="2"> 749 <?php echo T_('Link to Menu'); ?> 750 </th> 751 <tr> 752 <tr> 753 <td colspan="2"> 754 <?php echo T_('This will create a "Link - Static Content" in the menu you select'); ?> 755 <br /><br /> 756 </td> 757 <tr> 758 <tr> 759 <td valign="top" width="90px"> 760 <?php echo T_('Select a Menu'); ?> 761 </td> 762 <td> 763 <?php echo $lists['menuselect']; ?> 764 </td> 765 <tr> 766 <tr> 767 <td valign="top" width="90px"> 768 <?php echo T_('Menu Item Name'); ?> 769 </td> 770 <td> 771 <input type="text" name="link_name" class="inputbox" value="" size="30" /> 772 </td> 773 <tr> 774 <tr> 775 <td> 776 </td> 777 <td> 778 <input name="menu_link" type="button" class="button" value="<?php echo T_('Link to Menu'); ?>" onClick="submitbutton('menulink');" /> 779 </td> 780 <tr> 781 <tr> 782 <th colspan="2"> 783 <?php echo T_('Existing Menu Links'); ?> 784 </th> 785 </tr> 786 <?php 787 if ( $menus == NULL ) { 788 ?> 789 <tr> 790 <td colspan="2"> 791 <?php echo T_('None'); ?> 792 </td> 793 </tr> 794 <?php 795 } else { 796 mosCommonHTML::menuLinksContent( $menus ); 797 } 798 ?> 799 <tr> 800 <td colspan="2"> 801 </td> 802 </tr> 803 </table> 804 <?php 805 $tabs->endTab(); 806 $tabs->endPane(); 807 ?> 808 </td> 809 </tr> 810 811 </table> 812 </td> 813 </tr> 814 </table> 815 </div> 816 </td> 817 818 </tr> 819 </table> 820 821 </td> 822 </tr> 823 </table> 824 <input type="hidden" name="images" value="" /> 825 <input type="hidden" name="option" value="<?php echo $option; ?>" /> 826 <input type="hidden" name="id" value="<?php echo $row->id; ?>" /> 827 <input type="hidden" name="hits" value="<?php echo $row->hits; ?>" /> 828 <input type="hidden" name="task" value="" /> 829 </form> 830 <?php 831 } 832 } 833 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Feb 8 00:05:01 2012 | Cross-referenced by PHPXref 0.7 |
| Mambo API: Mambo is Free software released under the GNU/General Public License, Version 2 |