function print_config_content($order, $ab, $page) { global $strSexes, $GO_USERS; $db = new db(); for ($i = 0; $i < count($order); $i++) { switch ($order[$i]) { case 'email': if ($page == 0) { echo "<td nowrap>" . mail_to(empty_to_stripe($ab->f("email")), empty_to_stripe($ab->f("email")), 'normal', true, $ab->f("id")) . " </td>\n"; } if ($page == 1) { echo '<td>' . mail_to($ab->f('email'), $ab->f('email')) . '</td>'; } if ($page == 2) { echo "<td>" . mail_to(empty_to_stripe($GO_USERS->f("email"))) . " </td>\n"; } break; case 'sex': echo '<td nowrap> ' . $strSexes[$ab->f('sex')] . ' </td>'; break; case 'birthday': case 'relation_date': $day = $ab->f($order[$i]) > 0 ? db_date_to_date($ab->f($order[$i])) : ''; echo '<td nowrap> ' . empty_to_stripe($day) . ' </td>'; break; case 'company_id': case 'parent': $db->query("SELECT name FROM ab_companies WHERE id = '" . (int) $ab->f($order[$i]) . "'"); echo '<td nowrap> ' . htmlspecialchars(empty_to_stripe($db->next_record() ? $db->f('name') : '')) . ' </td>'; break; case '': break; default: echo "<td nowrap> " . htmlspecialchars(empty_to_stripe($ab->f($order[$i]))) . " </td>\n"; } } }
} $datepicker->print_date_picker('sale_date', $_SESSION['GO_SESSION']['date_format'], $today); ?> </td> </tr> <tr> <td><?php echo $sc_valid_date; ?> </td> <td> <?php if (!isset($order['valid_date'])) { $today = get_today(); } else { $today = db_date_to_date($order['valid_date']); } $datepicker->print_date_picker('valid_date', $_SESSION['GO_SESSION']['date_format'], $today); ?> </td> </tr> <tr> <td> <?php if (empty($order['seller'])) { $order['seller'] = $GO_SECURITY->user_id; } $select = new select('user', 'frmOrder', 'seller', $order['seller']); $select->print_link($sc_employee); ?> </td>
echo $strSex; ?> :</i> </td> <td width="100%"><?php echo empty_to_stripe($strSexes[$profile["sex"]]); ?> </td> </tr> <tr> <td align="right" nowrap><i><?php echo $strBirthday; ?> </i>:</td> <td> <?php $birthday = $profile['birthday'] > 0 ? db_date_to_date($profile['birthday']) : ''; echo empty_to_stripe($birthday); ?> </td> </tr> <tr><td colspan="2"> </td></tr> <tr> <td align="right" nowrap><i><?php echo $strAddress; ?> :</i> </td> <td width="100%"><?php echo empty_to_stripe($profile["address"]); ?> </td>
$contact['company_name'] = isset($_REQUEST['company_name']) ? $_REQUEST['company_name'] : ''; if ($company_id && ($company = $ab->get_company($company_id))) { $contact['company_name'] = $company['name']; $contact['company_id'] = $company_id; } else { $contact['company_id'] = isset($contact['company_id']) ? $contact['company_id'] : 0; } } if ($task == 'update') { $contact = $GO_USERS->get_user($contact['source_id']); $contact["source_id"] = $_POST['source_id']; $contact['comment'] = $_POST['comment']; $contact['group_id'] = $_POST['group_id']; $contact['addressbook_id'] = $_POST['addressbook_id']; $contact['company_id'] = $_POST['company_id']; $birthday = $contact['birthday'] > 0 ? db_date_to_date($contact['birthday']) : ''; } $datepicker = new date_picker(); $GO_HEADER['head'] = $datepicker->get_header(); $overlib = new overlib(); $GO_HEADER['head'] .= $overlib->get_header(); require $GO_THEME->theme_path . "header.inc"; echo '<form name="add" method="post" action="' . $_SERVER['PHP_SELF'] . '">'; echo '<input type="hidden" value="' . $contact["source_id"] . '" name="source_id" />'; echo '<input type="hidden" name="task" value="" />'; echo '<input type="hidden" name="close" value="false" />'; echo '<input type="hidden" name="return_to" value="' . $return_to . '" />'; echo '<input type="hidden" name="contact_id" value="' . $contact_id . '" />'; echo '<table border="0"><tr>'; $title = $contact_id > 0 ? $ab_contact : $contacts_add; $tabtable = new tabtable('contact_table', $title, '100%', '400', '120', '', true, 'left', 'top', 'add', 'vertical');
?> <tr> <td width="20" align="center"><?php echo ++$i; ?> </td> <td><a href="javascript:click_txt(document.frmOrderList,'edit',document.frmOrderList.id,'<?php echo $id; ?> ',false)"><?php echo $id; ?> </a></td> <td><?php echo db_date_to_date($pro->f('sale_date')); ?> </td> <td><?php echo $pro->f('attn'); ?> </td> <td><?php echo $profile['last_name'] . ' ' . $profile['middle_name'] . ' ' . $profile['first_name']; ?> </td> <td><a href='<?php echo $click_del; ?> '><?php if ($GO_MODULES->write_permissions) {
function fill_config_content($order, $ab, $page, &$row, &$irow, &$firstrun) { global $strSexes, $GO_USERS; $db = new db(); for ($i = 0; $i < count($order); $i++) { switch ($order[$i]) { case 'email': if ($page == 0) { if ($firstrun) { $row[$irow++] = array('html' => mail_to(empty_to_stripe($ab->f("email")), empty_to_stripe($ab->f("email")), 'normal', true, $ab->f("id"))); } else { $row[$irow++]['html'] = mail_to(empty_to_stripe($ab->f("email")), empty_to_stripe($ab->f("email")), 'normal', true, $ab->f("id")); } } if ($page == 1) { if ($firstrun) { $row[$irow++] = array('html' => mail_to($ab->f('email'), $ab->f('email'))); } else { $row[$irow++]['html'] = mail_to($ab->f('email'), $ab->f('email')); } } if ($page == 2) { if ($firstrun) { $row[$irow++] = array('html' => mail_to(empty_to_stripe($GO_USERS->f("email")))); } else { $row[$irow++]['html'] = mail_to(empty_to_stripe($GO_USERS->f("email"))); } } break; case 'sex': $row[$irow++] = $strSexes[$ab->f('sex')]; break; case 'birthday': case 'relation_date': $day = $ab->f($order[$i]) > 0 ? db_date_to_date($ab->f($order[$i])) : ''; $row[$irow++] = empty_to_stripe($day); break; case 'company_id': case 'parent': $db->query("SELECT name FROM ab_companies WHERE id = '" . (int) $ab->f($order[$i]) . "'"); $row[$irow++] = empty_to_stripe($db->next_record() ? $db->f('name') : ''); break; case '': break; default: $row[$irow++] = empty_to_stripe($ab->f($order[$i])); } } }
<?php $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>
} else { $author = $module_info['authors']; echo trim(htmlspecialchars($author['name']) . ' <' . mail_to($author['email']) . '>') . '<br />'; } ?> </td></tr> <tr><td>Description:</td><td><?php echo htmlspecialchars($module_info['description']); ?> </td></tr> <tr><td>Status:</td><td><?php echo htmlspecialchars($module_info['status']); ?> </td></tr> <tr><td>Release date:</td><td><?php echo db_date_to_date($module_info['release_date']); ?> </td></tr> </table> <?php echo '<br/>'; if (!$module) { $button = new button($cmdInstall, "javascript:document.location='{$return_to}'"); } else { $button = new button($cmdUninstall, "javascript:document.location='{$return_to}'"); } echo ' '; $button = new button($cmdClose, "javascript:document.location='{$return_to}'"); break; case 'read_permissions.inc': print_acl($module['acl_read']);