}
 if ($ab_settings['sort_contacts_order'] == "DESC") {
     $image_string = '&nbsp;<img src="' . $GO_THEME->images['arrow_down'] . '" border="0" />';
     $new_sort_order = "ASC";
 } else {
     $image_string = '&nbsp;<img src="' . $GO_THEME->images['arrow_up'] . '" border="0" />';
     $new_sort_order = "DESC";
 }
 echo '<input type="hidden" value="' . $new_sort_order . '" name="new_sort_order" />';
 if ($ab1->get_subscribed_addressbooks($GO_SECURITY->user_id) > 1) {
     echo '<table border="0" cellpadding="0" cellspacing="0"><tr><td>' . $ab_addressbook . ':</td><td>';
     $subscribed_addressbooks = new dropbox();
     while ($ab1->next_record()) {
         $subscribed_addressbooks->add_value($ab1->f('id'), $ab1->f('name'));
     }
     $subscribed_addressbooks->print_dropbox('addressbook_id', $addressbook_id, 'onchange="javascript:change_addressbook()"');
     echo '</td></tr></table>';
 } else {
     echo '<input type="hidden" name="addressbook_id" value="' . $addressbook_id . '" />';
 }
 echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n";
 echo '<tr><td class="TableHead2">&nbsp;</td>';
 if ($multiselect) {
     echo '<td class="TableHead2" width="16"><input type="checkbox" name="dummy" value="dummy" onclick="javascript:invert_selection()" /></td>';
 }
 echo "<td class=\"TableHead2\" nowrap><a class=\"TableHead2\" href=\"javascript:sort('name')\">" . $strName;
 if ($ab_settings['sort_contacts_field'] == "name") {
     echo $image_string;
 }
 echo "</a></td>\n";
 echo "<td class=\"TableHead2\" nowrap><a class=\"TableHead2\" href=\"javascript:sort('email')\">" . $strEmail;
	<tr><td>&nbsp;</td></tr>
	<tr>
		<td nowrap align="right">
			<?php 
echo $reg_language;
?>
:&nbsp;
		</td>
		<td>
			<?php 
$dropbox = new dropbox();
$languages = $GO_LANGUAGE->get_languages();
while ($language = array_shift($languages)) {
    $dropbox->add_value($language['code'], $language['description']);
}
$dropbox->print_dropbox("language", $GO_CONFIG->language);
?>
		</td>
	</tr>
	</table>
	</td>
</tr>
<tr>
<td colspan="2">
<?php 
$button = new button($cmdOk, 'javascript:document.forms[0].submit()');
echo '&nbsp;&nbsp;';
$button = new button($cmdReset, 'javascript:document.forms[0].reset()');
?>
</td>
</tr>
//style="width: 350px;"
$db->query('SELECT * FROM ab_categories WHERE parent_id = "0" ORDER BY category');
$count = $db->num_rows();
$catalog = new dropbox();
$catalog_name = '';
$catalog->add_value('0', $ab_TOP);
while ($db->next_record()) {
    if ($cat_id == 0) {
        $cat_id = $db->f('category_id');
    }
    $catalog->add_value($db->f('category_id'), $db->f('category'));
    if ($cat_id == $db->f('category_id')) {
        $catalog_name = $db->f('category');
    }
}
$catalog->print_dropbox('parent', $selected, '', false, '10', '200');
echo '<br><br>&nbsp;&nbsp;';
$button = new button($cmdAdd, 'javascript:add_status()');
echo '&nbsp;&nbsp;';
$button = new button($cmdCapnhat, 'javascript:update_status()');
echo '&nbsp;&nbsp;';
$button = new button($cmdClose, "javascript:document.location='" . $return_to . "'");
?>

<script type="text/javascript">

function delete_status(msg, id)
{
  	if (div_confirm(msg)) {
    	document.forms[0].task.value = 'delete_status';
	    document.forms[0].id.value = id;
 </tr>
 <tr>
 <td>
 How many users do you have in Group-Office?
 <?php 
 $dropbox = new dropbox();
 $dropbox->add_value('&lt; 5', '&lt; 5');
 $dropbox->add_value('20-30', '20-30');
 $dropbox->add_value('30-50', '30-50');
 $dropbox->add_value('50-75', '50-75');
 $dropbox->add_value('75-100', '75-100');
 $dropbox->add_value('100-150', '100-150');
 $dropbox->add_value('150-200', '150-200');
 $dropbox->add_value('300-400', '300-400');
 $dropbox->add_value('&gt; 400', '&gt; 400');
 $dropbox->print_dropbox('users', $users);
 ?>
 </td>
 </tr>
 <tr>
 <td>
 If you would like to recieve information about Group-Office Professional
 please fill in a name and an e-mail address where Intermesh may contact you:<br />
 <?php 
 $email = isset($email) ? $email : $GO_CONFIG->webmaster_email;
 $name = isset($name) ? $name : '';
 ?>
 <table style="border-width: 0px;font-family: Arial,Helvetica; font-size: 12px;">
 <tr>
 <td>E-mail:</td>
 <td><input type="text" size="50" name="email" value="<?php 
$catedrop->add_value(0, $sc_all);
while ($pro->next_record()) {
    $catedrop->add_value($pro->f('category_id'), $pro->f('category_name'));
}
?>
<table width="30%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><?php 
echo $sc_search_on;
?>
</td>
    <td>
<?php 
$fielddrop->print_dropbox('field_search', '');
echo ' ' . $sc_in . ' ';
$catedrop->print_dropbox('cate_search', '');
?>
	
	</td>
  </tr>
  <tr>
    <td><?php 
echo $sc_search_phrase;
?>
</td>
    <td><input type="text" name="phrase_search"></td>
  </tr>
</table>
<?php 
$button = new button($cmdSearch, "javascript:click_but(frmProSearch,'search','false')");
?>
Beispiel #6
0
         $dropbox->add_value($calendar_id, $new_cal_name);
     } else {
         $calendar_id = $first_writable_cal;
     }
 }
 if (count($event['calendars']) == 0) {
     $event['calendars'][] = $calendar_id;
 }
 for ($i = 0; $i < count($event['calendars']); $i++) {
     if (!$dropbox->is_in_dropbox($event['calendars'][$i])) {
         echo '<input type="hidden" name="calendars[]" value="' . $event['calendars'][$i] . '" />';
     }
 }
 echo '<tr><td valign="top">' . $sc_put_in . ':</td>';
 echo '<td><table border="0">';
 $dropbox->print_dropbox('calendars[]', $event['calendars'], '', true, '5', '200');
 echo '</table></td></tr>';
 echo '<tr><td colspan="2">';
 $button = new button($cmdOk, "javascript:save_event('true');");
 echo '&nbsp;&nbsp;';
 $button = new button($cmdApply, "javascript:save_event('false');");
 echo '&nbsp;&nbsp;';
 $button = new button($cmdSave, "javascript:document.event_form.emptyform.value='true';save_event('false');");
 echo '&nbsp;&nbsp;';
 if ($event_id > 0) {
     $button = new button($cal_export, "document.location='export.php?event_id={$event_id}';");
     echo '&nbsp;&nbsp;';
 }
 $button = new button($cmdCancel, "javascript:document.location='{$return_to}'");
 echo '</td></tr>';
 echo '</table>';
Beispiel #7
0
 $dropbox->add_value('last_name', $strLastName);
 $dropbox->add_value('email', $strEmail);
 $dropbox->add_value('company', $strCompany);
 $dropbox->add_value('department', $strDepartment);
 $dropbox->add_value('function', $strFunction);
 $dropbox->add_value('address', $strAddress);
 $dropbox->add_value('city', $strCity);
 $dropbox->add_value('zip', $strZip);
 $dropbox->add_value('state', $strState);
 $dropbox->add_value('country', $strCountry);
 $dropbox->add_value('work_address', $strWorkAddress);
 $dropbox->add_value('work_cip', $strWorkZip);
 $dropbox->add_value('work_city', $strWorkCity);
 $dropbox->add_value('work_state', $strWorkState);
 $dropbox->add_value('work_country', $strWorkCountry);
 $dropbox->print_dropbox('search_field', $search_field);
 echo '</td><td><input type="text" name="query" size="31" maxlength="255" class="textbox" value="';
 if (isset($_REQUEST['query'])) {
     echo smartstrip($_REQUEST['query']);
 }
 echo '"></td></tr>';
 echo '<tr><td colspan="2">';
 echo '<table><tr><td>';
 $button = new button($cmdSearch, 'javascript:add_users()');
 echo '</td><td>';
 $button = new button($cmdShowAll, "javascript:document.group.query.value='';add_users()");
 echo '</td><td>';
 $button = new button($cmdCancel, 'javascript:return_to_group()');
 echo '</td></tr></table>';
 echo '</td></tr></table>';
 if (isset($_REQUEST['query'])) {
" maxlength="100" size="30" />
			</td>
			<?php 
    $delimiter = isset($delimiter) ? $delimiter : '/';
    echo '<input type="hidden" name="delimiter" value="' . $delimiter . '" />';
    echo '<td>' . $ml_inside . '</td>';
    echo '<td>';
    $parent_folder_name = isset($parent_folder_name) ? $parent_folder_name : '';
    $dropbox = new dropbox();
    $dropbox->add_value($account['mbroot'], $ml_root_mailbox);
    for ($i = 0; $i < $mcount; $i++) {
        if ($go_mailboxes[$i]['attributes'] != LATT_NOINFERIORS) {
            $dropbox->add_value($go_mailboxes[$i]['name'], str_replace('INBOX' . $go_mailboxes[$i]['delimiter'], '', $go_mailboxes[$i]['name']));
        }
    }
    $dropbox->print_dropbox('parent_folder_name', $parent_folder_name);
    echo '</td>';
    ?>
			<td>
			<?php 
    $button = new button($cmdOk, "javascript:_save('create_folder', 'false')");
    ?>
			</td>
		</tr>
		</table>
		<br />
		<table border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td><h3><?php 
    echo $strName;
    ?>
            echo '</td></tr>';
            echo '<tr><td>' . $pm_status . '</td><td><b>';
            $status = $pm_status_values[$projects->f('status')];
            echo $status . '</b></td></tr>';
            echo '<tr><td>' . $pm_progress . ':</td><td>' . $progress . '%</td></tr>';
            echo '<tr><td>' . $pm_budget . ':</td><td>' . $budget . ' ' . $_SESSION['GO_SESSION']['currency'] . '</td></tr>';
        }
        $fee_count = $projects->get_fees();
        if ($fee_count > 0) {
            echo '<tr><td>' . $pm_fee . '</td><td>';
            $dropbox = new dropbox();
            while ($projects->next_record()) {
                $dropbox->add_value($projects->f('id'), $projects->f('name') . ' (' . htmlentities($_SESSION['GO_SESSION']['currency']) . '&nbsp;' . number_format($projects->f('value'), 2, $_SESSION['GO_SESSION']['decimal_seperator'], $_SESSION['GO_SESSION']['thousands_seperator']) . '&nbsp;/&nbsp;' . $projects->f('time') . '&nbsp;' . $pm_mins . ')');
            }
            $disabled = $project_id < 1 || $project['user_id'] == $GO_SECURITY->user_id ? '' : 'disabled';
            $dropbox->print_dropbox('fee_id', $fee_id, $disabled);
        } else {
            echo '<input type="hidden" name="fee_id" value="0" />';
        }
        if ($project_id > 0) {
            echo '<tr><td>' . $strOwner . ':</td><td>' . show_profile($project['user_id']) . '</td></tr>';
            echo '<tr><td>' . $strCreatedAt . ':</td><td>' . date($_SESSION['GO_SESSION']['date_format'] . ' ' . $_SESSION['GO_SESSION']['time_format'], $project['ctime'] + $_SESSION['GO_SESSION']['timezone'] * 3600) . '</td><tr>';
            echo '<tr><td>' . $strModifiedAt . ':</td><td>' . date($_SESSION['GO_SESSION']['date_format'] . ' ' . $_SESSION['GO_SESSION']['time_format'], $project['mtime'] + $_SESSION['GO_SESSION']['timezone'] * 3600) . '</td><tr>';
        }
        ?>
                  <tr>
                  <td valign="top"><?php 
        echo $strComments;
        ?>
:</td>
                <td>
Beispiel #10
0
     echo '</td></tr>';
     echo '</table>';
 } else {
     $dropbox = new dropbox();
     $required_dropbox = new dropbox();
     $dropbox->add_value('', $strNotIncluded);
     for ($n = 0; $n < sizeof($record); $n++) {
         $dropbox->add_value($n, $record[$n]);
         $required_dropbox->add_value($n, $record[$n]);
     }
     echo '<table border="0" cellpadding="4" cellspacing="0">';
     echo '<tr><td><h3>Group-Office</h3></td>';
     echo '<td><h3>CSV</h3></td></tr>';
     $name = isset($_POST['name']) ? $_POST['name'] : 0;
     echo '<tr><td>' . $strName . ':</td><td>';
     $required_dropbox->print_dropbox('name', $name);
     echo '</td></tr>';
     $address = isset($_POST['address']) ? $_POST['address'] : -1;
     echo '<tr><td>' . $strAddress . ':</td><td>';
     $dropbox->print_dropbox('address', $address);
     echo '</td></tr>';
     $zip = isset($_POST['zip']) ? $_POST['zip'] : -1;
     echo '<tr><td>' . $strZip . ':</td><td>';
     $dropbox->print_dropbox('zip', $zip);
     echo '</td></tr>';
     $city = isset($_POST['city']) ? $_POST['city'] : -1;
     echo '<tr><td>' . $strCity . ':</td><td>';
     $dropbox->print_dropbox('city', $city);
     echo '</td></tr>';
     $state = isset($_POST['state']) ? $_POST['state'] : -1;
     echo '<tr><td>' . $strState . ':</td><td>';
  under the terms of the GNU General Public License as published by the
  Free Software Foundation; either version 2 of the License, or (at your
  option) any later version.
*/
require "../../Group-Office.php";
$GO_SECURITY->authenticate();
$GO_MODULES->authenticate('projects');
require $GO_LANGUAGE->get_language_file('projects');
$page_title = $lang_modules['projects'];
require $GO_MODULES->class_path . "projects.class.inc";
$projects = new projects();
$project_id = isset($_GET['project_id']) ? $_GET['project_id'] : '0';
$project_task_id = isset($_GET['project_task_id']) ? $_GET['project_task_id'] : '0';
$projects->query("SELECT * FROM task WHERE task_project_id='{$project_id}' AND task_id='{$project_task_id}'");
if ($projects->next_record()) {
    $tstat = $projects->f("task_status");
    $tcomm = $projects->f("task_comment");
}
require $GO_THEME->theme_path . "header.inc";
echo '<form method="get" action="' . $_SERVER['PHP_SELF'] . '" name="projects_form">';
$dropbox = new dropbox();
$dropbox->add_value(0, $pm_task_status_values[0]);
$dropbox->add_value(1, $pm_task_status_values[1]);
$dropbox->add_value(2, $pm_task_status_values[2]);
$dropbox->print_dropbox("task_status", $tstat);
echo '<input type="hidden" name="close" value="false" />';
echo '<input type="hidden" name="project_id" value="' . $project_id . '" />';
echo '<input type="hidden" name="task" value="" />';
echo '<input type="hidden" name="return_to" value="' . $return_to . '" />';
echo "p = {$project_id}, t = {$project_task_id}";
require $GO_THEME->theme_path . "footer.inc";
Beispiel #12
0
?>
</a></td>
	</td>
</table>

<table border="0" width="100%" cellspacing="15">
<?php 
if ($bookmarks->get_catagories($GO_SECURITY->user_id, true)) {
    $dropbox = new dropbox();
    $dropbox->add_value('', $bm_move_to_catagory);
    $dropbox->add_value('0', $bm_catagory_other);
    while ($bookmarks->next_record()) {
        $dropbox->add_value($bookmarks->f('id'), $bookmarks->f('name'));
    }
    echo '<tr><td colspan="3">';
    $dropbox->print_dropbox('move_to_catagory', '', 'onchange="javascript:move_bookmarks()"');
    echo '</td></tr>';
}
$catagory_count = $bookmarks->get_catagories($GO_SECURITY->user_id);
$column_count = 0;
while ($bookmarks->next_record()) {
    $catagory_write = $GO_SECURITY->has_permission($GO_SECURITY->user_id, $bookmarks->f('acl_write'));
    if ($column_count == 0) {
        echo '<tr>';
    }
    echo '<td valign="top" width="33%">';
    $title = '<table border="0" width="100%" height="22" class="TableHead" cellpadding="0" ' . ' cellspacing="0"><td width="100%">' . htmlspecialchars($bookmarks->f('name')) . '</td>';
    if ($catagory_write) {
        $title .= '<td width="16"><a href="bookmark.php?catagory_id=' . $bookmarks->f('id') . '"><img src="' . $GO_THEME->images['bm_add_bookmark'] . '" border="0"></a></td>';
    }
    $title .= '<td width="16"><a class="normal" href="catagory.php?catagory_id=' . $bookmarks->f("id") . '"><img src="' . $GO_THEME->images['edit'] . '" border="0"></a></td>';
Beispiel #13
0
                 // If the actual processed part is equal in this group and tha
                 // last one, we can indent it.
                 if ($parts[$i] == $last[$i]) {
                     $indent = $indent . "&nbsp;&nbsp;&nbsp;";
                 }
             }
         }
         // Text and value of dropbox entry should be the same: the name
         // of the group.
         $dropbox->add_value($ng, $indent . $ng);
         // We finished with processing this group. Now we update this variable
         // To be able to compare the next group with this one.
         $last = explode(".", $ng);
     }
     // Print the dropbox. It's called "newsgroup" without any parameters.
     $dropbox->print_dropbox('newsgroup', '', '');
     echo "<br/>";
 }
 // Now we print an input field for the subject of the message.
 echo "<input type='text' class='textbox' name='news_subj' size='110' ";
 echo "value='";
 // If we are answering to an message we print the old subject with an
 // additional "Re: " in front of it:
 if ($mode == "answer") {
     // Print an "Re: " and the encoded subject of the old message.
     echo "Re: " . utf8_decode(imap_utf8($msg->subject));
 }
 // Close the input field. If we're not answering the value of the input
 // field will be clear and the user has to choose a subject.
 echo "'><br/>\n";
 // Print a textbox for the body of the new message
            $dropbox = new dropbox();
            $dropbox->add_arrays($hours, $hours);
            $dropbox->print_dropbox('calendar_start_hour', $calendar['start_hour']);
        } else {
            echo $calendar['start_hour'];
        }
        ?>
		&nbsp;<?php 
        echo $sc_to;
        ?>
&nbsp;
		<?php 
        if ($has_write_permission) {
            $dropbox = new dropbox();
            $dropbox->add_arrays($hours, $hours);
            $dropbox->print_dropbox('calendar_end_hour', $calendar['end_hour']);
        } else {
            echo $calendar['end_hour'];
        }
        ?>
		</td>
	</tr>
	<tr>
		<td colspan="2">
			<?php 
        if ($has_write_permission) {
            $button = new button($cmdOk, "javascript:document.forms[0].close.value='true';document.forms[0].task.value='save';document.forms[0].submit()");
            echo '&nbsp;&nbsp;';
            $button = new button($cmdApply, "javascript:document.forms[0].task.value='save';document.forms[0].submit()");
            echo '&nbsp;&nbsp;';
        }
        $psumamount += $pamount;
        $ptotal += $pprice * $pquantity;
        ?>
			
	<tr>
      <td align="center">&nbsp;  </td>
	  <td nowrap>
	  	&nbsp;&nbsp;-&nbsp;<?php 
        echo $cate_arr[$j];
        ?>
&nbsp;&nbsp;&nbsp;
		<?php 
        $dropbox->print_dropbox('attach[]', '', 'onChange="document.frmOrder.price' . $i . $j . '.value=document.frmOrder.listprice' . $i . $j . '.options[this.selectedIndex].value;CalcMoney(price' . $i . $j . ',quantity' . $i . $j . ',sum' . $i . $j . ',incdec' . $i . $j . ',VAT' . $i . $j . ',amount' . $i . $j . ',sum,total,amount,sumamount)"');
        ?>
		<?php 
        $pricebox->print_dropbox('listprice' . $i . $j, '', ' style="visibility:hidden" ');
        ?>
		<input type="hidden" name="product[]" value="<?php 
        echo $pro->f('product_id');
        ?>
">
		<input type="hidden" name="cate[]" value="<?php 
        echo $cate_id_arr[$j];
        ?>
">
	  </td>
	  <td align="right"> <input type="text" class="textbox" id="price<?php 
        echo $i . $j;
        ?>
" name="price[]" style="text-align:right; width:90px"  value="<?php 
        echo $pprice;
Beispiel #16
0
     $dropbox->add_value('2', 'two');
     $dropbox->add_value('3', 'three');
     $dropbox->print_dropbox('dropdown', $dropdown);
     echo '<br /><br />';
     //or direct database link:
     //this is how you should load a class:
     //this function gets all users
     $GO_USERS->get_users();
     //we can now pass the users object to the dropdown box and add all the users to it
     //declare the user var
     $user = isset($_POST['user']) ? $_POST['user'] : '******';
     $dropbox = new dropbox();
     //add the users class, use 'id' for value and 'name' for text
     $dropbox->add_sql_data('GO_USERS', 'id', 'first_name');
     //print the dropbox
     $dropbox->print_dropbox('user', $user);
     echo '<br /><br />';
     //statusbar control
     $statusbar = new statusbar();
     $statusbar->info_text = 'Group-Office usage';
     $statusbar->turn_red_point = 90;
     $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']);
Beispiel #17
0
</tr>
<tr>
<td nowrap>
<?php 
    echo $pref_first_weekday;
    ?>
:
</td>
<td>
<?php 
    //create an xml object because the date formats are stored as a setting in xml format
    //add them to a dropbox
    $dropbox = new dropbox();
    $dropbox->add_value('0', $full_days[0]);
    $dropbox->add_value('1', $full_days[1]);
    $dropbox->print_dropbox("first_weekday", $_SESSION['GO_SESSION']['first_weekday']);
    ?>
</td>
</tr>
<tr>
<td >&nbsp;</td>
</tr>
<tr>
<td>
<?php 
    echo $pref_thousands_seperator;
    ?>
:
</td>
<td>
<input type="text" class="textbox" size="3" name="thousands_seperator" value="<?php 
Beispiel #18
0
</td>
</tr>
<tr>
<td colspan="2">

<?php 
$folder = isset($_POST['folder']) ? $_POST['folder'] : '';
$dropbox = new dropbox();
$dropbox->add_value('', $ml_move_to);
$email->get_all_folders($id, true);
while ($email->next_record()) {
    if (!($email->f('attributes') & LATT_NOSELECT)) {
        $dropbox->add_value($email->f('name'), str_replace('INBOX' . $email->f('delimiter'), '', $email->f('name')));
    }
}
$dropbox->print_dropbox('folder', $folder);
?>
</td>
</tr>
<tr>
<td colspan="2">
<br />
<?php 
$button = new button($cmdOk, 'javascript:save_filter()');
echo '&nbsp;&nbsp;';
$button = new button($cmdCancel, 'javascript:document.location=\'' . $return_to . '\'');
?>
</td>
</tr>
</table>
Beispiel #19
0
    } else {
        $dst_offset = 0;
    }
    $timezone_offset = $_SESSION['GO_SESSION']['timezone'] + $dst_offset;
    if (!$print) {
        echo '<table border="0" cellpadding="0" cellspacing="0"><tr height="28"><td><h3>';
        echo $sc_view . ':&nbsp;</h3></td><td>';
        $dropbox = new dropbox();
        $dropbox->add_value('1', '1 ' . $sc_day);
        $dropbox->add_value('2', '2 ' . $sc_days);
        $dropbox->add_value('5', '5 ' . $sc_days);
        $dropbox->add_value('7', '1 ' . $sc_week);
        $dropbox->add_value('14', '2 ' . $sc_weeks);
        $dropbox->add_value('21', '3 ' . $sc_weeks);
        $dropbox->add_value('35', '1 ' . $sc_month);
        $dropbox->print_dropbox("show_days", $cal_settings['show_days'], 'onchange="javascript:document.forms[0].submit()"');
        if ($cal_settings['show_days'] == 5) {
            $interval = 7;
        } else {
            $interval = $cal_settings['show_days'];
        }
        echo '</td><td nowrap><h3><a href="javascript:goto_date(' . ($day - $interval) . ', ' . $month . ', ' . $year . ');">&lt;&lt; </a>&nbsp;';
        echo date($_SESSION['GO_SESSION']['date_format'], $interval_start_time2 + $timezone_offset * 3600) . ' - ' . date($_SESSION['GO_SESSION']['date_format'], $interval_end_time2 + $timezone_offset * 3600);
        echo '&nbsp;<a href="javascript:goto_date(' . ($day + $interval) . ', ' . $month . ', ' . $year . ');">&gt;&gt;</a>';
        echo '</h3></td></tr></table>';
    }
    ?>
		
		</td>
      </tr>
    </table>
Beispiel #20
0
                $dropbox->add_value('INBOX', $ml_inbox);
            }
            while ($email->next_record()) {
                if (!($email->f('attributes') & LATT_NOSELECT) && $email->f('name') != $mailbox) {
                    $dropbox->add_value($email->f('name'), $email->f('name'));
                }
            }
            $dropbox->print_dropbox('folder', '', 'onchange="javascript:move_mail()"');
        }
        $dropbox = new dropbox();
        $dropbox->add_value('', $ml_mark);
        $dropbox->add_value('read', $ml_markread);
        $dropbox->add_value('unread', $ml_markunread);
        $dropbox->add_value('flag', $ml_flag);
        $dropbox->add_value('clear_flag', $ml_clearflag);
        $dropbox->print_dropbox('flag', '', 'onchange="javascript:set_flag()"');
    } else {
        echo '&nbsp;';
    }
    ?>

      </td>
      <td colspan="3" align="right" class="small" nowrap>
      <?php 
    echo $msg_count . " " . $ml_messages;
    ?>
      </td>
      </tr>

      <tr>
      <td class="TableHead2" width="16"><input type="checkbox" name="dummy" value="dummy" onclick="javascript:invert_selection()" /></td>
Beispiel #21
0
$status_disabled = $todo['completed'] ? 'disabled' : '';
$datepicker->print_date_picker('completion_date', $_SESSION['GO_SESSION']['date_format'], $todo['completion_date'], '', '', '', !$todo['completed']);
echo '</td><td>&nbsp;&nbsp;';
$dropbox = new dropbox();
$dropbox->add_arrays($hours, $hours);
$dropbox->print_dropbox("completion_hour", $todo['completion_hour'], $disabled);
echo '&nbsp;:&nbsp;';
$dropbox = new dropbox();
$dropbox->add_arrays($mins, $mins);
$dropbox->print_dropbox("completion_min", $todo['completion_min'], $disabled);
echo '&nbsp;&nbsp;&nbsp;&nbsp;';
$dropbox = new dropbox();
for ($i = 0; $i < 101; $i = $i + 10) {
    $dropbox->add_value($i, "{$i}");
}
$dropbox->print_dropbox('status', $todo['status'], $status_disabled);
echo '&nbsp;&nbsp;';
echo $cal_percent_completed;
echo '</td></tr></table>';
echo '<tr><td colspan="2">&nbsp;</td></tr>';
echo '<tr><td nowrap>' . $sc_background . ':&nbsp;</td><td>';
$color_selector = new color_selector();
$color_selector->add_color('FFFFCC');
$color_selector->add_color('FF6666');
$color_selector->add_color('CCFFCC');
$color_selector->add_color('99CCFF');
$color_selector->add_color('FF99FF');
$color_selector->add_color('FFCC66');
$color_selector->add_color('CCCC66');
$color_selector->add_color('F1F1F1');
$color_selector->add_color('FFCCFF');
Beispiel #22
0
            echo '<input type="text" class="textbox" style="width: 250px;" name="name" value="' . htmlspecialchars($name) . '" maxlength="50" />';
        } else {
            echo htmlspecialchars($note['name']);
        }
        ?>
	</td>
	<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>
echo date($_SESSION['GO_SESSION']['date_format'] . ' ' . $_SESSION['GO_SESSION']['time_format'], get_time($content['udate']));
?>
</td>
</tr>
<?php 
if ($account['type'] == "imap" && !$print) {
    echo '<tr><td nowrap><b>' . $ml_folder . ':&nbsp;</b></td><td>';
    if ($email->get_all_folders($account['id'], true) > 0) {
        $dropbox = new dropbox();
        $dropbox->add_value('INBOX', $ml_inbox);
        while ($email->next_record()) {
            if (!($email->f('attributes') & LATT_NOSELECT)) {
                $dropbox->add_value($email->f('name'), str_replace('INBOX' . $email->f('delimiter'), '', $email->f('name')));
            }
        }
        $dropbox->print_dropbox('move_to_mailbox', $mailbox, 'onchange="javascript:move_mail()"');
    }
}
echo '</td></tr>';
?>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
Beispiel #24
0
?>
:</td>
	<td><?php 
echo htmlspecialchars($_SESSION['GO_SESSION']['currency']);
?>
&nbsp;<input type="text" name="value" value="<?php 
echo htmlspecialchars($value);
?>
" maxlength="10" size="6" class="textbox" />
	&nbsp;/&nbsp;
	<?php 
$dropbox = new dropbox();
for ($i = 1; $i <= 60; $i++) {
    $dropbox->add_value($i, $i);
}
$dropbox->print_dropbox('time', $time);
echo '&nbsp;' . $pm_mins;
?>
	</td>
</tr>
<tr>
	<td colspan="2"><br />
	<?php 
$button = new button($cmdOk, "javascript:document.forms[0].submit()");
echo '&nbsp;&nbsp;';
$button = new button($cmdCancel, "javascript:document.location='index.php?post_action=fees';");
?>
	</td>
</tr>

</table>
?>
<table border="0" cellpadding="10">
<tr>
<td>
<table border="0" cellpadding="3" cellspacing="0">
<tr><td colspan="1" height="25">
<a href="calendar.php?return_to=<?php 
echo rawurlencode($link_back);
?>
" class="normal"><?php 
echo $cmdAdd;
?>
</a></td>
<td colspan="4" align="right"><?php 
echo "{$sc_view}: ";
$dropbox->print_dropbox('view_type', $view_type, 'onchange="frm.submit()"');
?>
</td></tr>
  <?php 
if (isset($feedback)) {
    echo '<tr><td colspan="5" height="25">' . $feedback . '</td></tr>';
}
echo '<tr><td><h3>' . $strName . '</h3></td><td><h3>' . $sc_owner . '</h3></td><td><h3>' . $sc_subscribed . '</h3></td><td>&nbsp;</td><td>&nbsp;</td></tr>';
$settings = $cal->get_settings($GO_SECURITY->user_id);
$calendar_count = $cal->get_authorised_calendars($GO_SECURITY->user_id);
if ($calendar_count > 0) {
    $subscr_count = 0;
    while ($cal->next_record()) {
        $checked = '';
        $uid = $cal->f('user_id');
        if (!isset($subscribed)) {
Beispiel #26
0
	<tr>
	<td>
	<?php 
            echo $cms_theme;
            ?>
:
	</td>
	<td>
	<?php 
            $dropbox = new dropbox();
            while ($cms->next_record()) {
                if (isset($site) && $cms->f('id') == $site['template_id'] || $GO_SECURITY->has_permission($GO_SECURITY->user_id, $cms->f('acl_read')) || $GO_SECURITY->has_permission($GO_SECURITY->user_id, $cms->f('acl_write'))) {
                    $dropbox->add_value($cms->f('id'), $cms->f('name'));
                }
            }
            $dropbox->print_dropbox('template_id', $template_id);
            ?>
	</td>
	</tr>
	<tr>
	<td colspan="2">
	<?php 
            $checkbox = new checkbox('secure', 'true', $cms_use_go_auth, $secure_check);
            ?>
	</td>
	</tr>
	
	<tr>
	<td colspan="2">
	<?php 
            echo '<br />' . $cms_display_type . '<br />';
} else {
    ?>

    <tr><td colspan="2">&nbsp;</td></tr>
    <tr>
    <td><?php 
    echo $ml_type;
    ?>
:</td>
    <td>
	<table border=0><tr><td>
    <?php 
    $dropbox = new dropbox();
    $dropbox->add_value('pop3', 'POP3');
    $dropbox->add_value('imap', 'IMAP');
    $dropbox->print_dropbox('type', $type, 'onchange="javascript:change_port()"');
    ?>
	</td><td>
    <?php 
    $checkbox = new checkbox('use_ssl', '1', 'SSL', $use_ssl, false, 'onclick="javascript:change_port()"');
    ?>
	</td><td>
    <?php 
    $checkbox = new checkbox('novalidate_cert', '1', $ml_novalidate_cert, $novalidate_cert);
    ?>
	</td></tr></table>
    </td>
    </tr>

    <tr>
    	<td><?php 
    Hãy để trong chỗ này nếu bạn dùng hàm php mail(), nhưng bạn sẽ không thể dùng dùng CC và BCC header!
    <br />
    <br />
    <table style="border-width: 0px;font-family: Arial,Helvetica; font-size: 12px;">
    <tr>
    <td>
    Mailer:
    </td>
    <td>
    <?php 
    $dropbox = new dropbox();
    $dropbox->add_value('mail', 'PHP Mail() Function');
    $dropbox->add_value('sendmail', 'Use local sendmail');
    $dropbox->add_value('qmail', 'Use local Qmail');
    $dropbox->add_value('smtp', 'Use remote SMTP');
    $dropbox->print_dropbox('mailer', $GO_CONFIG->mailer, 'onchange="javascript:change_mailer()"');
    ?>
    </td>
    </tr>
    <tr>
    <td>
    SMTP server:
    </td>
    <td>
    <input type="text" size="40" name="smtp_server" value="<?php 
    echo $GO_CONFIG->smtp_server;
    ?>
"  />
    </td>
    </tr>
    <tr>
Beispiel #29
0
            $dropbox = new dropbox();
            $dropbox->add_arrays($hours, $hours);
            $dropbox->print_dropbox('view_start_hour', $view['start_hour']);
        } else {
            echo $view['start_hour'];
        }
        ?>
	&nbsp;<?php 
        echo $sc_to;
        ?>
&nbsp;
	<?php 
        if ($has_write_permission) {
            $dropbox = new dropbox();
            $dropbox->add_arrays($hours, $hours);
            $dropbox->print_dropbox('view_end_hour', $view['end_hour']);
        } else {
            echo $view['end_hour'];
        }
        ?>
	</td>
</tr>
<tr>
	<td valign><?php 
        echo $sc_calendars;
        ?>
:</td>
	<td>
	<table border="0">
	<tr>
		<td><h3><?php 
$res = $pro->get_order_fields_name();
for ($i = 0; $i < count($res); $i++) {
    if (isset($sc_fields[$res[$i]])) {
        $fielddrop->add_value($res[$i], $sc_fields[$res[$i]]);
    }
}
?>
<table width="30%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td nowrap><?php 
echo $sc_search_on;
?>
</td>
    <td>
<?php 
$fielddrop->print_dropbox('search_fld', $_POST['search_fld']);
?>
	
	</td>
  </tr>
  <tr>
    <td nowrap><?php 
echo $sc_search_phrase;
?>
</td>
    <td><input type="text" name="search_value"></td>
  </tr>
</table>
<br>
<?php 
$button = new button($cmdSearch, "javascript:click_but(frmSearch,'search','false')");