mambo的cms源代码
源代码在线查看: admin.contact.html.php
/** * @version $Id: admin.contact.html.php,v 1.9 2005/02/15 14:49:40 kochp Exp $ * @package Mambo * @subpackage Contact * @copyright (C) 2000 - 2005 Miro International Pty Ltd * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL * Mambo is Free Software */ /** ensure this file is being included by a parent file */ defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); /** * @package Mambo * @subpackage Contact */ class HTML_contact { function showContacts( &$rows, &$pageNav, $search, $option, &$lists ) { global $my, $adminLanguage; mosCommonHTML::loadOverlib(); ?> : $k = 0; for ($i=0, $n=count($rows); $i < $n; $i++) { $row = $rows[$i]; $link = 'index2.php?option=com_contact&task=editA&hidemainmenu=1&id='. $row->id; $img = $row->published ? 'tick.png' : 'publish_x.png'; $task = $row->published ? 'unpublish' : 'publish'; $alt = $row->published ? $adminLanguage->A_COMP_PUBLISHED : $adminLanguage->A_COMP_UNPUBLISHED; $checked = mosCommonHTML::CheckedOutProcessing( $row, $i ); $row->cat_link = 'index2.php?option=com_categories§ion=com_contacts&task=editA&hidemainmenu=1&id='. $row->catid; $row->user_link = 'index2.php?option=com_users&task=editA&hidemainmenu=1&id='. $row->user_id; ?> if ( $row->checked_out && ( $row->checked_out != $my->id ) ) { echo $row->name; } else { ?> } ?> $k = 1 - $k; } ?> } function editContact( &$row, &$lists, $option, &$params ) { global $mosConfig_live_site, $adminLanguage; if ($row->image == '') { $row->image = 'blank.png'; } $tabs = new mosTabs(0); mosMakeHtmlSafe( $row, ENT_QUOTES, 'misc' ); ?> function submitbutton(pressbutton) { var form = document.adminForm; if (pressbutton == 'cancel') { submitform( pressbutton ); return; } // do field validation if ( form.name.value == "" ) { alert( "" ); } else if ( form.catid.value == 0 ) { alert( "" ); } else { submitform( pressbutton ); } } : : : : : : : : : : : : : : $tabs->startPane("content-pane"); $tabs->startTab($adminLanguage->A_COMP_CONTENT_PUBLISHING,"publish-page"); ?> : : : : $tabs->endTab(); $tabs->startTab($adminLanguage->A_COMP_CONTENT_IMAGES2,"images-page"); ?> : if (document.forms[0].image.options.value!=''){ jsimg='../images/stories/' + getSelectedValue( 'adminForm', 'image' ); } else { jsimg='../images/M_images/blank.png'; } document.write(' $tabs->endTab(); $tabs->startTab($adminLanguage->A_COMP_CONT_PARAMETERS, "params-page" ); ?> $tabs->endTab(); $tabs->endPane(); ?> } } ?>