[ Index ] |
|
Code source de vtiger CRM 5.0.2 |
1 <?php 2 /********************************************************************************* 3 ** The contents of this file are subject to the vtiger CRM Public License Version 1.0 4 * ("License"); You may not use this file except in compliance with the License 5 * The Original Code is: vtiger CRM Open Source 6 * The Initial Developer of the Original Code is vtiger. 7 * Portions created by vtiger are Copyright (C) vtiger. 8 * All Rights Reserved. 9 * 10 ********************************************************************************/ 11 global $current_user,$mod_strings,$app_strings; 12 global $theme; 13 $theme_path="themes/".$theme."/"; 14 $image_path=$theme_path."images/"; 15 require_once ($theme_path."layout_utils.php"); 16 require_once ('include/database/PearDatabase.php'); 17 require_once ('modules/Calendar/CalendarCommon.php'); 18 $t=Date("Ymd"); 19 $userDetails=getOtherUserName($current_user->id,true); 20 $shareduser_ids = getSharedUserId($current_user->id); 21 ?> 22 <table border=0 cellspacing=0 cellpadding=5 width=100% class="layerHeadingULine"> 23 <tr> 24 <td class="layerPopupHeading" align="left"><? echo $mod_strings['LBL_CALSETTINGS']?></td> 25 <td align=right> 26 <a href="javascript:fninvsh('calSettings');"><img src="<?echo $image_path?>close.gif" border="0" align="absmiddle" /></a> 27 </td> 28 </tr> 29 </table> 30 <form name="SharingForm" method="post" action="index.php"> 31 <input type="hidden" name="module" value="Calendar"> 32 <input type="hidden" name="action" value="updateCalendarSharing"> 33 <input type="hidden" name="view" value="<?php echo $_REQUEST['view'] ?>"> 34 <input type="hidden" name="hour" value="<?php echo $_REQUEST['hour'] ?>"> 35 <input type="hidden" name="day" value="<?php echo $_REQUEST['day'] ?>"> 36 <input type="hidden" name="month" value="<?php echo $_REQUEST['month'] ?>"> 37 <input type="hidden" name="year" value="<?php echo $_REQUEST['year'] ?>"> 38 <input type="hidden" name="viewOption" value="<?php echo $_REQUEST['viewOption'] ?>"> 39 <input type="hidden" name="subtab" value="<?php echo $_REQUEST['subtab'] ?>"> 40 <input type="hidden" name="parenttab" value="<?php echo $_REQUEST['parenttab'] ?>"> 41 <input type="hidden" name="current_userid" value="<? echo $current_user->id ?>" > 42 <table border=0 cellspacing=0 cellpadding=5 width=95% align=center> 43 <tr> 44 <td class=small > 45 <table border=0 celspacing=0 cellpadding=5 width=100% align=center bgcolor=white> 46 <tr> 47 <td align="right" width="10%" valign="top"><img src="<?echo $image_path?>cal_clock.jpg" align="absmiddle"></td> 48 <td align="left" width="90%"> 49 <b><?echo $mod_strings['LBL_TIMESETTINGS']?></b><br> 50 <input type="checkbox" name="sttime_check" <? if($current_user->start_hour != ''){?> checked <? } ?> onClick="enableCalstarttime();"> <?echo $mod_strings['LBL_CALSTART']?> 51 <select name="start_hour" <? if($current_user->start_hour == ''){?>disabled <? } ?> > 52 <? 53 for($i=0;$i<=23;$i++) 54 { 55 if($i == 0) 56 $hour = "12:00 am"; 57 elseif($i >= 12) 58 { 59 if($i == 12) 60 $hour = $i; 61 else 62 $hour = $i - 12; 63 $hour = $hour.":00 pm"; 64 } 65 else 66 { 67 $hour = $i.":00 am"; 68 } 69 if($i <= 9 && strlen(trim($i)) < 2) 70 { 71 $value = '0'.$i.':00'; 72 } 73 else 74 $value = $i.':00'; 75 if($value === $current_user->start_hour) 76 $selected = 'selected'; 77 else 78 $selected = ''; 79 ?> 80 <option <?echo $selected?> value="<? echo $value?>"><? echo $hour?></option> 81 <? 82 } 83 ?> 84 </select><br> 85 <input type="checkbox" name="hour_format" <? if($current_user->hour_format == '24'){?> checked <? } ?> value="24"> <?echo $mod_strings['LBL_USE24']?> 86 </td> 87 </tr> 88 <tr><td colspan="2" style="border-bottom:1px dotted #CCCCCC;"></td></tr> 89 <tr> 90 <td align="right" valign="top"><img src="<?echo $image_path?>cal_sharing.jpg" width="45" height="38" align="absmiddle"></td> 91 <td align="left"> 92 <b><?echo $mod_strings['LBL_CALSHARE']?></b><br> 93 <?echo $mod_strings['LBL_CALSHAREMESSAGE']?><br><br> 94 <div id="cal_shar" style="border:1px solid #666666;width:90%;height:200px;overflow:auto;position:relative;"> 95 <table width="95%" border="0" cellpadding="5" cellspacing="0" align="center"> 96 <?php 97 $cnt = 1; 98 echo '<tr>'; 99 foreach($userDetails as $id=>$name) 100 { 101 if(in_array($id,$shareduser_ids)) 102 $checkbox = "checked"; 103 else 104 $checkbox = ""; 105 echo '<td width="50%" align="left"><input type="checkbox" name="user[]" value='.$id.' '.$checkbox.'> '.$name.'</td>'; 106 if($cnt%2 == 0) 107 echo '</tr>'; 108 $cnt++; 109 } 110 ?> 111 </table> 112 </div> 113 </td> 114 </tr> 115 </table> 116 </td> 117 </tr> 118 </table> 119 <table border=0 cellspacing=0 cellpadding=5 width=100% class="layerPopupTransport"> 120 <tr> 121 <td align="center"> 122 <input type="submit" name="save" value=" <? echo $app_strings['LBL_SAVE_BUTTON_LABEL'] ?> " class="crmbutton small save" /> 123 <input type="button" name="cancel" value=" <? echo $app_strings['LBL_CANCEL_BUTTON_LABEL'] ?> " class="crmbutton small cancel" onclick="fninvsh('calSettings');" /> 124 </td> 125 </tr> 126 </table> 127 </form> 128
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 10:22:19 2007 | par Balluche grâce à PHPXref 0.7 |