Example #1
0
 case 'write_permissions':
     $read_only = $event['user_id'] == $GO_SECURITY->user_id ? false : true;
     print_acl($event['acl_write']);
     echo '<br /><br />';
     echo '&nbsp;&nbsp;&nbsp;&nbsp;';
     $button = new button($cmdCancel, "javascript:document.location='" . $return_to . "'");
     break;
 default:
     echo '<table border="0" cellpadding="2" cellspacing="0">';
     if (isset($feedback)) {
         echo '<tr><td colspan="2" class="Error">' . $feedback . '</td></tr>';
     }
     echo '<tr><td>' . $strName . ':&nbsp;</td><td><input type="text" class="textbox" maxlength="50" name="name" style="width: 300px;" value="' . htmlspecialchars($event['name']) . '" /></td></tr>';
     echo '<tr><td>';
     if ($ab_module) {
         $link = $ab->select_contacts('document.event_form.to', $GO_MODULES->url . 'add_contacts.php');
         echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td>" . "<a class=\"normal\" href=\"" . $link . "\"><img src=\"" . $GO_THEME->images['addressbook_small'] . "\" width=\"16\" " . "height=\"16\" border=\"0\" /></a>&nbsp;</td><td>" . '<a class="normal" href="' . $link . '">' . $sc_participants . '</a>:&nbsp;</td></tr></table></td>';
     } else {
         echo $sc_participants . ":&nbsp;";
     }
     echo '<td nowrap><input type="text" class="textbox" name="to" value="' . htmlspecialchars($event['to']) . '" style="width: 300px;" />';
     if ($event_id > 0) {
         $checkbox = new checkbox('send_invitation', 'true', $cal_resend_invitation, $send_invitation);
     } else {
         echo '<input type="hidden" name="send_invitation" value="true" />';
     }
     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);