- md5
- 85b6d2e07f39c95805e24ed560ddaa89
- sha1
- 66ac821ddba0852c31600e94dd15f5824323d8d2
- sha256
- 457896a6958cd5d18fac581091e240996dda4622ae9dfb4c1a612f7e57cb9636
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416
<?php
/**
* @version $Id: admin.contact.html.php 5950 2006-12-06 22:42:31Z facedancer $
* @package Joomla
* @subpackage Contact
* @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
// no direct access
defined( '_VALID_MOS' ) or die( 'Restricted access' );
/**
* @package Joomla
* @subpackage Contact
*/
class HTML_contact {
function showContacts( &$rows, &$pageNav, $search, $option, &$lists ) {
global $my;
mosCommonHTML::loadOverlib();
?>
<form action="index2.php" method="post" name="adminForm">
<table class="adminheading">
<tr>
<th>
Contact Manager
</th>
<td>
Filter:
</td>
<td>
<input type="text" name="search" value="<?php echo htmlspecialchars( $search );?>" class="inputbox" onChange="document.adminForm.submit();" />
</td>
<td width="right">
<?php echo $lists['catid'];?>
</td>
</tr>
</table>
<table class="adminlist">
<tr>
<th width="20">
#
</th>
<th width="20" class="title">
<input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count($rows); ?>);" />
</th>
<th class="title">
Name
</th>
<th width="5%" class="title" nowrap="nowrap">
Published
</th>
<th colspan="2" nowrap="nowrap" width="5%">
Reorder
</th>
<th width="15%" align="left">
Category
</th>
<th class="title" nowrap="nowrap" width="15%">
Linked to User
</th>
</tr>
<?php
$k = 0;
for ($i=0, $n=count($rows); $i < $n; $i++) {
$row = $rows[$i];
mosMakeHtmlSafe($row);
$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 ? 'Published' : 'Unpublished';
$checked = mosCommonHTML::CheckedOutProcessing( $row, $i );
$row->cat_link = 'index2.php?option=com_categories§ion=com_contact_details&task=editA&hidemainmenu=1&id='. $row->catid;
$row->user_link = 'index2.php?option=com_users&task=editA&hidemainmenu=1&id='. $row->user_id;
?>
<tr class="<?php echo "row$k"; ?>">
<td>
<?php echo $pageNav->rowNumber( $i ); ?>
</td>
<td>
<?php echo $checked; ?>
</td>
<td>
<?php
if ( $row->checked_out && ( $row->checked_out != $my->id ) ) {
echo $row->name;
} else {
?>
<a href="<?php echo $link; ?>" title="Edit Contact">
<?php echo $row->name; ?>
</a>
<?php
}
?>
</td>
<td align="center">
<a href="javascript: void(0);" onClick="return listItemTask('cb<?php echo $i;?>','<?php echo $task;?>')">
<img src="images/<?php echo $img;?>" width="12" height="12" border="0" alt="<?php echo $alt; ?>" />
</a>
</td>
<td>
<?php echo $pageNav->orderUpIcon( $i, ( $row->catid == @$rows[$i-1]->catid ) ); ?>
</td>
<td>
<?php echo $pageNav->orderDownIcon( $i, $n, ( $row->catid == @$rows[$i+1]->catid ) ); ?>
</td>
<td>
<a href="<?php echo $row->cat_link; ?>" title="Edit Category">
<?php echo $row->category; ?>
</a>
</td>
<td>
<a href="<?php echo $row->user_link; ?>" title="Edit User">
<?php echo $row->user; ?>
</a>
</td>
</tr>
<?php
$k = 1 - $k;
}
?>
</table>
<?php echo $pageNav->getListFooter(); ?>
<input type="hidden" name="option" value="<?php echo $option; ?>" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="boxchecked" value="0" />
<input type="hidden" name="hidemainmenu" value="0">
</form>
<?php
}
function editContact( &$row, &$lists, $option, &$params ) {
global $mosConfig_live_site;
if ($row->image == '') {
$row->image = 'blank.png';
}
$tabs = new mosTabs(0);
mosMakeHtmlSafe( $row, ENT_QUOTES, 'misc' );
?>
<script language="javascript" type="text/javascript">
<!--
function submitbutton(pressbutton) {
var form = document.adminForm;
if (pressbutton == 'cancel') {
submitform( pressbutton );
return;
}
// do field validation
if ( form.name.value == "" ) {
alert( "You must provide a name." );
} else if ( form.catid.value == 0 ) {
alert( "Please select a Category." );
} else {
submitform( pressbutton );
}
}
//-->
</script>
<form action="index2.php" method="post" name="adminForm">
<table class="adminheading">
<tr>
<th>
Contact:
<small>
<?php echo $row->id ? 'Edit' : 'New';?>
</small>
</th>
</tr>
</table>
<table width="100%">
<tr>
<td width="60%" valign="top">
<table width="100%" class="adminform">
<tr>
<th colspan="2">
Contact Details
</th>
<tr>
<tr>
<td width="20%" align="right">
Category:
</td>
<td width="40%">
<?php echo $lists['catid'];?>
</td>
</tr>
<tr>
<td width="20%" align="right">
Linked to User:
</td>
<td >
<?php echo $lists['user_id'];?>
</td>
</tr>
<tr>
<td width="20%" align="right">
Name:
</td>
<td >
<input class="inputbox" type="text" name="name" size="50" maxlength="100" value="<?php echo $row->name; ?>" />
</td>
</tr>
<tr>
<td align="right">
Contact's Position:
</td>
<td>
<input class="inputbox" type="text" name="con_position" size="50" maxlength="50" value="<?php echo $row->con_position; ?>" />
</td>
</tr>
<tr>
<td align="right">
E-mail:
</td>
<td>
<input class="inputbox" type="text" name="email_to" size="50" maxlength="100" value="<?php echo $row->email_to; ?>" />
</td>
</tr>
<tr>
<td align="right">
Street Address:
</td>
<td>
<input class="inputbox" type="text" name="address" size="50" value="<?php echo $row->address; ?>" />
</td>
</tr>
<tr>
<td align="right">
Town/Suburb:
</td>
<td>
<input class="inputbox" type="text" name="suburb" size="50" maxlength="50" value="<?php echo $row->suburb;?>" />
</td>
</tr>
<tr>
<td align="right">
State/County:
</td>
<td>
<input class="inputbox" type="text" name="state" size="50" maxlength="20" value="<?php echo $row->state;?>" />
</td>
</tr>
<tr>
<td align="right">
Country:
</td>
<td>
<input class="inputbox" type="text" name="country" size="50" maxlength="50" value="<?php echo $row->country;?>" />
</td>
</tr>
<tr>
<td align="right">
Postal Code/ZIP:
</td>
<td>
<input class="inputbox" type="text" name="postcode" size="25" maxlength="10" value="<?php echo $row->postcode; ?>" />
</td>
</tr>
<tr>
<td align="right">
Telephone:
</td>
<td>
<input class="inputbox" type="text" name="telephone" size="25" maxlength="25" value="<?php echo $row->telephone; ?>" />
</td>
</tr>
<tr>
<td align="right">
Fax:
</td>
<td>
<input class="inputbox" type="text" name="fax" size="25" maxlength="25" value="<?php echo $row->fax; ?>" />
</td>
</tr>
<tr>
<td align="right" valign="top">
Miscellaneous Info:
</td>
<td>
<textarea name="misc" rows="5" cols="50" class="inputbox"><?php echo $row->misc; ?></textarea>
</td>
</tr>
</table>
</td>
<td width="40%" valign="top">
<?php
$tabs->startPane("content-pane");
$tabs->startTab("Publishing","publish-page");
?>
<table width="100%" class="adminform">
<tr>
<th colspan="2">
Publishing Info
</th>
<tr>
<tr>
<td valign="top" align="right">
Published:
</td>
<td>
<?php echo $lists['published']; ?>
</td>
</tr>
<tr>
<td valign="top" align="right">
Ordering:
</td>
<td>
<?php echo $lists['ordering']; ?>
</td>
</tr>
<tr>
<td valign="top" align="right">
Access:
</td>
<td>
<?php echo $lists['access']; ?>
</td>
</tr>
<tr>
<td colspan="2">
</td>
</tr>
</table>
<?php
$tabs->endTab();
$tabs->startTab("Images","images-page");
?>
<table width="100%" class="adminform">
<tr>
<th colspan="2">
Image Info
</th>
<tr>
<tr>
<td align="left" width="20%">
Image:
</td>
<td align="left">
<?php echo $lists['image']; ?>
</td>
</tr>
<tr>
<td>
</td>
<td>
<script language="javascript" type="text/javascript">
if (document.forms[0].image.options.value!=''){
jsimg='../images/stories/' + getSelectedValue( 'adminForm', 'image' );
} else {
jsimg='../images/M_images/blank.png';
}
document.write('<img src=' + jsimg + ' name="imagelib" width="100" height="100" border="2" alt="Preview" />');
</script>
</td>
</tr>
</table>
<?php
$tabs->endTab();
$tabs->startTab("Parameters","params-page");
?>
<table class="adminform">
<tr>
<th>
Parameters
</th>
</tr>
<tr>
<td>
* These Parameters only control what you see when you click to view a Contact item *
<br /><br />
</td>
</tr>
<tr>
<td>
<?php echo $params->render();?>
</td>
</tr>
</table>
<?php
$tabs->endTab();
$tabs->endPane();
?>
</td>
</tr>
</table>
<script language="Javascript" src="<?php echo $mosConfig_live_site;?>/includes/js/overlib_mini.js"></script>
<input type="hidden" name="option" value="<?php echo $option; ?>" />
<input type="hidden" name="id" value="<?php echo $row->id; ?>" />
<input type="hidden" name="task" value="" />
</form>
<?php
}
}
?>
No other release has this exact content. See every version of this file.