$select->print_field(); echo '</td></tr>'; } else { echo '<input type="hidden" value="0" name="contact_id" />'; } echo '<tr><td>' . $sc_location . ':</td>' . '<td><input type="text" class="textbox" style="width: 300px;"' . 'name="location" value="' . htmlspecialchars($todo['location']) . '" /></td></tr>' . '<tr><td valign="top">' . $sc_description . ': </td><td>' . '<textarea class="textbox" name="description" cols="60" rows="4">' . htmlspecialchars($todo['description']) . '</textarea></td></tr>' . '<tr><td colspan="2"> </td></tr>'; echo '<tr><td>' . $cal_priority . ':</td><td>'; $dropbox = new dropbox(); $dropbox->add_value('0', $cal_priority_values[0]); $dropbox->add_value('1', $cal_priority_values[1]); $dropbox->add_value('2', $cal_priority_values[2]); $dropbox->print_dropbox('priority', $todo['priority']); echo '</td></tr>'; echo '<tr><td>' . $sc_start_at . ': </td><td>'; echo '<table border="0" cellpadding="0" cellspacing="0"><tr><td>'; $datepicker->print_date_picker('start_date', $_SESSION['GO_SESSION']['date_format'], $todo['start_date'], '', '', 'onchange="javascript:document.forms[0].due_date.value=this.value;"'); echo '</td><td> '; $dropbox = new dropbox(); $dropbox->add_arrays($hours, $hours); $dropbox->print_dropbox("start_hour", $todo['start_hour'], 'onchange="javascript:update_due_hour(this.value);"'); echo ' : '; $dropbox = new dropbox(); $dropbox->add_arrays($mins, $mins); $dropbox->print_dropbox("start_min", $todo['start_min'], 'onchange="javascript:document.forms[0].due_min.value=this.value;"'); echo '</td></tr></table>'; echo '</td></tr>'; echo '<tr><td>' . $cal_due_at . ': </td><td>'; echo '<table border="0" cellpadding="0" cellspacing="0"><tr><td>'; $datepicker->print_date_picker('due_date', $_SESSION['GO_SESSION']['date_format'], $todo['due_date']); echo '</td><td> '; $dropbox = new dropbox();
$radiolist = new radio_list('sex', $sex); $radiolist->add_option('M', $strSexes['M']); echo ' '; $radiolist->add_option('F', $strSexes['F']); ?> </td> </tr> <tr> <td align="right" nowrap><?php echo $strBirthday; ?> :</td> <td> <?php $birthday = isset($_REQUEST['birthday']) ? $_REQUEST['birthday'] : ''; $datepicker->print_date_picker('birthday', $GO_CONFIG->date_formats[0], $birthday); ?> </td> </tr> <tr><td colspan="2"> </td></tr> <?php if (isset($val->error["address"])) { ?> <tr> <td class="Error" colspan="2"> <?php echo $val->error["address"]; ?> </td> </tr> <?php
} echo '</td></tr>'; if ($ab_module) { $select = new select('contact', 'event_form', 'contact_id', $event['contact_id']); echo '<tr><td>'; $select->print_link($sc_client); echo ':</td><td>'; $select->print_field(); echo '</td></tr>'; } else { echo '<input type="hidden" value="0" name="contact_id" />'; } echo '<tr><td>' . $sc_location . ':</td>' . '<td><input type="text" class="textbox" style="width: 300px;"' . 'name="location" value="' . htmlspecialchars($event['location']) . '" /></td></tr>' . '<tr><td valign="top">' . $sc_description . ': </td><td>' . '<textarea class="textbox" name="description" cols="60" rows="4">' . htmlspecialchars($event['description']) . '</textarea></td></tr>' . '<tr><td colspan="2"> </td></tr>'; echo '<tr><td>' . $sc_start_at . ': </td><td>'; echo '<table border="0" cellpadding="0" cellspacing="0"><tr><td>'; $datepicker->print_date_picker('start_date', $_SESSION['GO_SESSION']['date_format'], $event['start_date'], '', '', 'onchange="javascript:document.event_form.end_date.value=this.value;document.event_form.repeat_end_date.value=this.value;"'); echo '</td><td> '; $dropbox = new dropbox(); $dropbox->add_arrays($hours, $hours); $dropbox->print_dropbox("start_hour", $event['start_hour'], 'onchange="javascript:update_end_hour(this.value);"'); echo ' : '; $dropbox = new dropbox(); $dropbox->add_arrays($mins, $mins); $dropbox->print_dropbox("start_min", $event['start_min'], 'onchange="javascript:document.event_form.end_min.value=this.value;"'); echo '</td></tr></table>'; echo '</td></tr>'; echo '<tr><td>' . $sc_end_at . ': </td><td>'; echo '<table border="0" cellpadding="0" cellspacing="0"><tr><td>'; $datepicker->print_date_picker('end_date', $_SESSION['GO_SESSION']['date_format'], $event['end_date']); echo '</td><td> '; $dropbox = new dropbox();
$_REQUEST['max_rows'] = isset($_REQUEST['max_rows']) ? $_REQUEST['max_rows'] : 5; require 'todos.inc'; ?> </td> </tr> </table> </td> <td valign="top" width="100%"> <?php } require_once $GO_MODULES->path . 'classes/cal_holidays.class.inc'; $holidays = new holidays(); if ($task == 'list_view') { require 'list_view.inc'; } elseif ($print) { require 'print.inc'; } else { require 'calendar.inc'; } if (!$print) { ?> </td> </tr> </table> </form> <?php $next_month = $month + 1; $datepicker->print_date_picker('date_picker1', '', $month . '/' . $day . '/' . $year, 'date_picker1_container', 'date_picker'); //$datepicker->print_date_picker('date_picker2', '',$next_month.'/'.$day.'/'.$year, 'date_picker2_container', 'date_picker'); require $GO_THEME->theme_path . "footer.inc"; }
<tr> <?php if ($notes->get_catagories() > 0) { echo '<tr><td>' . $no_catagory . ':</td><td>'; $dropbox = new dropbox(); $dropbox->add_value('', $no_none); while ($notes->next_record()) { $dropbox->add_value($notes->f('id'), $notes->f('name')); } $dropbox->print_dropbox('catagory_id', $catagory_id); echo '</td><tr>'; } else { echo '<input type="hidden" name="catagory_id" value="0" />'; } echo '<tr><td>' . $no_due_date . ':</td><td>'; $datepicker->print_date_picker('due_date', $_SESSION['GO_SESSION']['date_format'], $due_date); echo '</td></tr>'; $select = new select('user', 'notes_form', 'responsible_user_id', $responsible_user_id); echo '<tr><td>'; $select->print_link($no_responsible); echo ':</td><td>'; $select->print_field(); echo '</td></tr>'; ?> </table> </td> <td valign="top"> <table border="0" cellspacing="0" cellpadding="4"> <?php echo '<tr><td>' . $strOwner . ':</td><td>' . show_profile($user_id, '', 'normal', $link_back) . '</td></tr>'; echo '<tr><td>' . $strCreatedAt . ':</td><td>' . $ctime . '</td><tr>';
$dropbox->add_value($email->f('name'), str_replace('INBOX' . $email->f('delimiter'), '', $email->f('name'))); } } echo '<tr><td>' . $ml_folder . ':</td><td>'; $dropbox->print_dropbox('mailbox', $mailbox); echo '</td></tr>'; } } echo '<tr><td>' . $ml_subject . ':</td><td>' . '<input type="text" name="subject" size="40" class="textbox" value="' . htmlspecialchars($subject) . '" />' . '</td></tr>'; echo '<tr><td>' . $ml_from . ':</td><td>' . '<input type="text" name="from" size="40" class="textbox" value="' . htmlspecialchars($from) . '" />' . '</td></tr>'; echo '<tr><td>' . $ml_to . ':</td><td>' . '<input type="text" name="to" size="40" class="textbox" value="' . htmlspecialchars($to) . '" />' . '</td></tr>'; echo '<tr><td>CC:</td><td>' . '<input type="text" name="cc" size="40" class="textbox" value="' . htmlspecialchars($cc) . '" />' . '</td></tr>'; echo '<tr><td>' . $ml_body . ':</td><td>' . '<input type="text" name="body" size="40" class="textbox" value="' . htmlspecialchars($body) . '" />' . '</td></tr>'; echo '</table></td><td valign="top"><table border="0">'; echo '<tr><td>' . $ml_before . ':</td><td>'; $date_picker->print_date_picker('before', $_SESSION['GO_SESSION']['date_format'], $before); echo '</td></tr>'; echo '<tr><td>' . $ml_since . ':</td><td>'; $date_picker->print_date_picker('since', $_SESSION['GO_SESSION']['date_format'], $since); echo '</td></tr>'; echo '<tr><td>' . $ml_flag . ':</td><td>'; $radio_list = new radio_list('flagged', $flagged); $radio_list->add_option('', $ml_doesnt_matter); $radio_list->add_option('FLAGGED', $cmdYes); $radio_list->add_option('UNFLAGGED', $cmdNo); echo '</td></tr>'; echo '<tr><td>' . $ml_answered . ':</td><td>'; $radio_list = new radio_list('answered', $answered); $radio_list->add_option('', $ml_doesnt_matter); $radio_list->add_option('ANSWERED', $cmdYes); $radio_list->add_option('UNANSWERED', $cmdNo);
//So if we want to set the permissions this can be done really easily with the acl control echo '<p>You are visible to:</p>'; $user = $GO_USERS->get_user($GO_SECURITY->user_id); print_acl($user['acl_id']); //When you are creating your own secured objects you just call th e function: $GO_SECURITY->get_new_acl() //to create a new ACL. (See classes/base/*.security.class.inc) break; case 'htmlarea': $content = isset($_POST['content']) ? $_POST['content'] : '<h1>Html editing in Group-Office</h1>'; $htmlarea->print_htmlarea($content); break; case 'jscalendar': //print date picker using your preference setting date_format. //Note that get_time() uses your timezone and Daylight Saving preferences. $today = date($_SESSION['GO_SESSION']['date_format'], get_time()); $datepicker->print_date_picker('date', $_SESSION['GO_SESSION']['date_format'], $today); //You can also print a non popup calendar ?> <div id="date_picker1_container" style="width: 220px;padding-top:20px;"></div> <script type="text/javascript"> function date_picker_callback_function(calendar) { // Beware that this function is called even if the end-user only // changed the month/year. In order to determine if a date was // clicked you can use the dateClicked property of the calendar: if (calendar.dateClicked) { // OK, a date was clicked, redirect to /yyyy/mm/dd/index.php var y = calendar.date.getFullYear(); var m = calendar.date.getMonth()+1; // integer, 0..11 var d = calendar.date.getDate(); // integer, 1..31 alert('Day: '+d+' Month: '+m+' Year: '+y); }
$select->print_link($pm_client); echo ':</td><td>'; $select->print_field(); echo '</td></tr>'; } else { echo '<input type="hidden" value="0" name="contact_id" />'; echo $pm_no_contact; } $select = new select('user', 'projects_form', 'responsible_user_id', $responsible_user_id); echo '<tr><td>'; $select->print_link($pm_employee); echo ':</td><td>'; $select->print_field(); echo '</td></tr>'; echo '<tr><td>' . $pm_start_date . ':</td><td>'; $datepicker->print_date_picker('start_date', $_SESSION['GO_SESSION']['date_format'], $start_date, '', '', 'onchange="javascript:is_valid_date(\'end_date\', this.value)"'); echo '</td></tr>'; echo '<tr><td>' . $pm_end_date . ':</td><td>'; $datepicker->print_date_picker('end_date', $_SESSION['GO_SESSION']['date_format'], $end_date, '', '', 'onchange="javascript:is_valid_date(\'start_date\', this.value)"'); echo '</td></tr>'; if ($project_id > 0) { $pstate = $projects->f('status'); echo '<tr><td>' . $pm_status . ':</td><td><b>' . $pm_status_values[$pstate] . '</b></td></tr>'; echo '<tr><td>' . $pm_progress . ':</td><td>' . $progress . '%</td></tr>'; } echo '<tr><td>' . $pm_budget . ':</td><td><input type="text" class="textbox" size="10" name="budget" value="' . $budget . '" maxlength="50" style="text-align: right;" /> ' . $_SESSION['GO_SESSION']['currency'] . '</td></tr>'; } else { echo '<tr><td>' . $pm_client . ':</td><td>'; if ($contact_id > 0) { echo show_contact($contact_id); } else {
$radiolist = new radio_list('sex', $profile['sex']); $radiolist->add_option('M', $strSexes['M']); echo ' '; $radiolist->add_option('F', $strSexes['F']); ?> </td> </tr> <tr> <td align="right" nowrap><?php echo $strBirthday; ?> :</td> <td> <?php $birthday = db_date_to_date($profile['birthday']); $datepicker->print_date_picker('birthday', $_SESSION['GO_SESSION']['date_format'], $birthday); ?> </td> </tr> <tr><td colspan="2"> </td></tr> <tr heigth="25"> <td align="right" nowrap><?php echo $strAddress; ?> : </td> <td width="100%"><input type="text" class="textbox" name="address" size="40" maxlength="50" value="<?php echo $profile["address"]; ?> "></td> </tr>