Ejemplo n.º 1
0
            }
        } elseif ($contact_id > 0) {
            echo '<tr><td>' . $no_contact . ':</td><td>' . show_contact($contact_id, '', $link_back) . '</td><tr>';
        } elseif ($file_path != '' && ($fs_module = $GO_MODULES->get_module('filesystem'))) {
            if (file_exists($file_path)) {
                echo '<tr><td>' . $no_file . ':</td><td><a class="normal" href="' . $fs_module['url'] . 'index.php?path=' . urlencode($file_path) . '">' . stripslashes($file_path) . '</a></td><tr>';
            }
        }
        ?>
		  </table>
		  </td>
		  </tr>
		  <tr>
		  <td colspan="2">
		  <?php 
        $htmlarea->print_htmlarea(htmlspecialchars($content));
        ?>
		  </td>
		  </tr>
		  <tr>
		  <td colspan="2">
		  <?php 
        if ($write_permissions) {
            $button = new button($cmdOk, "javascript:_save('save_note', 'true');");
            echo '&nbsp;&nbsp;';
            $button = new button($cmdApply, "javascript:_save('save_note', 'false')");
            echo '&nbsp;&nbsp;';
        }
        $button = new button($cmdClose, "javascript:document.location='" . $return_to . "';");
        ?>
		  </td>
Ejemplo n.º 2
0
        $statusbar->print_bar(75, 100);
        break;
    case 'acl_demo':
        //You can secure an object by giving it an ACL (Access Control List). When the user
        //you logged in with was created it also got an ACL. This acl is used to protect your personal profile.
        //We already got the user information in the above example so the user acl = stored in $user['acl_id'].
        //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) {