<tr> <td class="main"><table border="0" width="100%" cellspacing="0" cellpadding="2" class="formArea"> <tr> <td class="main"><table border="0" cellspacing="0" cellpadding="2"> <tr> <td class="main"> <?php echo PASSWORD; ?> </td> <td class="main"> <?php if ($error) { if ($entry_password_error) { echo owpPasswordField('password') . ' ' . PASSWORD_ERROR; } else { echo PASSWORD_HIDDEN . owpDrawHiddenField('password') . owpDrawHiddenField('confirmation'); } } else { echo owpPasswordField('password') . ' '; } ?> </td> </tr> <?php if (!$error || $entry_password_error) { ?> <tr> <td class="main"> <?php echo PASSWORD_CONFIRMATION; ?> </td>
<td width="<?php echo BOX_WIDTH; ?> " valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?> " cellspacing="1" cellpadding="1" class="columnLeft"> <!-- left_navigation //--> <?php require OWP_INCLUDES_DIR . 'column_left.php'; ?> <!-- left_navigation_eof //--> </table></td> <!-- body_text //--> <td width="100%" valign="top"><?php echo owpDrawForm('account_edit', $owpFilename['account_edit_process'], '', 'post', 'onSubmit="return check_form();"') . owpDrawHiddenField('action', 'process'); ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="owp-title"><?php echo HEADING_TITLE; ?> </td> </tr> <tr> <td><?php echo owpTransLine('1', '10'); ?> </td> </tr> <tr>
function display_links($query_numrows, $max_rows_per_page, $max_page_links, $current_page_number, $parameters = '', $page_name = 'page') { global $_SERVER; if ($parameters != '') { $parameters .= '&'; } // calculate number of pages needing links $num_pages = intval($query_numrows / $max_rows_per_page); // $num_pages now contains int of pages needed unless there is a remainder from division if ($query_numrows % $max_rows_per_page) { $num_pages++; } // has remainder so add one page $pages_array = array(); for ($i = 1; $i <= $num_pages; $i++) { $pages_array[] = array('id' => $i, 'text' => $i); } if ($num_pages > 1) { $display_links = owpDrawForm('pages', basename($_SERVER['PHP_SELF']), '', 'get'); if ($current_page_number > 1) { $display_links .= '<a href="' . owpLink(basename($_SERVER['PHP_SELF']), $parameters . $page_name . '=' . ($current_page_number - 1), 'NONSSL') . '" class="splitPageLink">' . PREVNEXT_BUTTON_PREV . '</a> '; } else { $display_links .= PREVNEXT_BUTTON_PREV . ' '; } $display_links .= sprintf(TEXT_RESULT_PAGE, owpPullDownMenu($page_name, $pages_array, '', 'onChange="this.form.submit();"'), $num_pages); if ($current_page_number < $num_pages && $num_pages != 1) { $display_links .= ' <a href="' . owpLink(basename($_SERVER['PHP_SELF']), $parameters . $page_name . '=' . ($current_page_number + 1), 'NONSSL') . '" class="splitPageLink">' . PREVNEXT_BUTTON_NEXT . '</a>'; } else { $display_links .= ' ' . PREVNEXT_BUTTON_NEXT; } if ($parameters != '') { if (substr($parameters, -1) == '&') { $parameters = substr($parameters, 0, -1); } $pairs = explode('&', $parameters); while (list(, $pair) = each($pairs)) { list($key, $value) = explode('=', $pair); $display_links .= owpDrawHiddenField(rawurldecode($key), rawurldecode($value)); } } if (SID) { $display_links .= owpDrawHiddenField(owpSessionName(), owpSessionID()); } $display_links .= '</form>'; } else { $display_links = sprintf(TEXT_RESULT_PAGE, $num_pages, $num_pages); } return $display_links; }
$dir->close(); } for ($i = 0; $i < sizeof($directory_array); $i++) { $modules_array[] = array('id' => substr($directory_array[$i], 0, strrpos($directory_array[$i], '.')), 'text' => substr($directory_array[$i], 0, strrpos($directory_array[$i], '.'))); } ?> <tr> <td><?php echo owpTransLine('1', '10'); ?> </td> </tr> <tr><?php echo owpDrawForm('newsletter', $owpFilename['newsletters'], 'page=' . $_GET['page'] . '&action=' . $form_action); if ($form_action == 'update') { echo owpDrawHiddenField('newsletter_id', $nID); } ?> <td><table border="0" cellspacing="0" cellpadding="2"> <tr> <td class="main"><?php echo TEXT_NEWSLETTER_MODULE; ?> </td> <td class="main"><?php echo owpPullDownMenu('module', $modules_array, $nInfo->module); ?> </td> </tr> <tr> <td colspan="2"><?php
</td> </tr> <tr> <td colspan="3"><?php echo owpTransLine('1', '10'); ?> </td> </tr> <tr> <td colspan="3"> <?php /* Re-Post all POST'ed variables */ reset($_POST); while (list($key, $value) = each($_POST)) { if (!is_array($_POST[$key])) { echo owpDrawHiddenField($key, htmlspecialchars(stripslashes($value))); } } ?> <table border="0" width="100%" cellpadding="0" cellspacing="2"> <tr> <td valign="top" align="left"><?php echo owpImageSubmit('button_back.gif', IMAGE_BACK, 'name="back"'); ?> </td> <td><?php echo owpTransLine('20', '1'); ?> </td> <td align="right"><?php echo '<a href="' . owpLink($owpFilename['mail']) . '">' . owpImageButton('button_cancel.gif', IMAGE_CANCEL) . '</a> ' . owpImageSubmit('button_send_mail.gif', IMAGE_SEND_EMAIL);
<?php if ($directory_writeable && $_GET['action'] == 'new_file' || $_GET['action'] == 'edit') { if (strstr($_GET['info'], '..')) { owpRedirect(owpLink($owpFilename['file_manager'])); } if (!isset($file_writeable)) { $file_writeable = true; } $file_contents = ''; if ($_GET['action'] == 'new_file') { $filename_input_field = owpInputField('filename'); } elseif ($_GET['action'] == 'edit') { if ($file_array = file($current_path . '/' . $_GET['info'])) { $file_contents = htmlspecialchars(implode('', $file_array)); } $filename_input_field = $_GET['info'] . owpDrawHiddenField('filename', $_GET['info']); } ?> <tr> <td><?php echo owpTransLine('1', '10'); ?> </td> </tr> <tr><?php echo owpDrawForm('new_file', $owpFilename['file_manager'], 'action=save'); ?> <td><table border="0" cellspacing="0" cellpadding="2"> <tr> <td class="main"><?php echo TEXT_FILE_NAME;