[ Index ] |
|
Code source de e107 0.7.8 |
1 <?php 2 /* 3 + ----------------------------------------------------------------------------+ 4 | e107 website system ©Steve Dunstan 2001-2002 5 | http://e107.org jalist@e107.org 6 | 7 | Released under the terms and conditions of the 8 | GNU General Public License (http://gnu.org). 9 | 10 | $Source: /cvsroot/e107/e107_0.7/e107_files/shortcode/batch/contact_shortcodes.php,v $ 11 | $Revision: 1.5 $ 12 | $Date: 2006/10/24 13:38:46 $ 13 | $Author: mrpete $ 14 +----------------------------------------------------------------------------+ 15 */ 16 if (!defined('e107_INIT')) { exit; } 17 include_once(e_HANDLER.'shortcode_handler.php'); 18 $contact_shortcodes = $tp -> e_sc -> parse_scbatch(__FILE__); 19 /* 20 SC_BEGIN CONTACT_EMAIL_COPY 21 global $pref; 22 if(!isset($pref['contact_emailcopy']) || !$pref['contact_emailcopy']) 23 { 24 return; 25 } 26 return "<input type='checkbox' name='email_copy' value='1' />"; 27 SC_END 28 29 SC_BEGIN CONTACT_PERSON 30 global $sql,$tp,$pref; 31 if($pref['sitecontacts'] == e_UC_ADMIN){ 32 $query = "user_admin =1"; 33 }elseif($pref['sitecontacts'] == e_UC_MAINADMIN){ 34 $query = "user_admin = 1 AND (user_perms = '0' OR user_perms = '0.') "; 35 }else{ 36 $query = "FIND_IN_SET(".$pref['sitecontacts'].",user_class) "; 37 } 38 39 $text = "<select name='contact_person' class='tbox contact_person'>\n"; 40 $count = $sql -> db_Select("user", "user_id,user_name", $query . " ORDER BY user_name"); 41 if($count > 1){ 42 while($row = $sql-> db_Fetch()) 43 { 44 $text .= "<option value='".$row['user_id']."'>".$row['user_name']."</option>\n"; 45 } 46 }else{ 47 return; 48 } 49 $text .= "</select>"; 50 return $text; 51 SC_END 52 53 54 SC_BEGIN CONTACT_IMAGECODE 55 global $sec_img; 56 return "<input type='hidden' name='rand_num' value='".$sec_img->random_number."' />".$sec_img->r_image(); 57 SC_END 58 59 SC_BEGIN CONTACT_IMAGECODE_INPUT 60 return "<input class='tbox' type='text' name='code_verify' size='15' maxlength='20' />"; 61 SC_END 62 63 */ 64 65 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Apr 1 01:23:32 2007 | par Balluche grâce à PHPXref 0.7 |