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>&nbsp;&nbsp;';
         } else {
             $display_links .= PREVNEXT_BUTTON_PREV . '&nbsp;&nbsp;';
         }
         $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 .= '&nbsp;&nbsp;<a href="' . owpLink(basename($_SERVER['PHP_SELF']), $parameters . $page_name . '=' . ($current_page_number + 1), 'NONSSL') . '" class="splitPageLink">' . PREVNEXT_BUTTON_NEXT . '</a>';
         } else {
             $display_links .= '&nbsp;&nbsp;' . 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;
 }
    } else {
        $file = OWP_LANG_PATH . $_GET['lngdir'] . '/' . $_GET['filename'];
    }
    if (file_exists($file)) {
        $file_array = file($file);
        $file_contents = implode('', $file_array);
        $file_writeable = true;
        if (!is_writeable($file)) {
            $file_writeable = false;
            $messageStack->reset();
            $messageStack->add(sprintf(ERROR_FILE_NOT_WRITEABLE, $file), 'error');
            echo $messageStack->output();
        }
        ?>
          <tr><?php 
        echo owpDrawForm('language', $owpFilename['define_language'], 'lngdir=' . $_GET['lngdir'] . '&filename=' . $_GET['filename'] . '&action=save');
        ?>
            <td><table border="0" cellspacing="0" cellpadding="2">
              <tr>
                <td class="main"><b><?php 
        echo $_GET['filename'];
        ?>
</b></td>
              </tr>
              <tr>
                <td class="main"><?php 
        echo owpTextareaField('file_contents', 'soft', '80', '20', $file_contents, $file_writeable ? '' : 'readonly');
        ?>
</td>
              </tr>
              <tr>
    $configuration_query->MoveNext();
}
?>
            </table></td>
<?php 
$heading = array();
$contents = array();
switch ($_GET['action']) {
    case 'edit':
        $heading[] = array('text' => '<b>' . $cInfo->configuration_title . '</b>');
        if ($cInfo->set_function) {
            eval('$value_field = ' . $cInfo->set_function . "'" . $cInfo->configuration_value . "');");
        } else {
            $value_field = owpInputField('configuration_value', $cInfo->configuration_value);
        }
        $contents = array('form' => owpDrawForm('configuration', $owpFilename['configuration'], 'gID=' . $_GET['gID'] . '&cID=' . $cInfo->configuration_id . '&action=save'));
        $contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
        $contents[] = array('text' => '<br><b>' . $cInfo->configuration_title . '</b><br>' . $cInfo->configuration_description . '<br>' . $value_field);
        $contents[] = array('align' => 'center', 'text' => '<br>' . owpImageSubmit('button_update.gif', IMAGE_UPDATE) . '&nbsp;<a href="' . owpLink($owpFilename['configuration'], 'gID=' . $_GET['gID'] . '&cID=' . $cInfo->configuration_id) . '">' . owpImageButton('button_cancel.gif', IMAGE_CANCEL) . '</a>');
        break;
    default:
        if (is_object($cInfo)) {
            $heading[] = array('text' => '<b>' . $cInfo->configuration_title . '</b>');
            $contents[] = array('align' => 'center', 'text' => '<a href="' . owpLink($owpFilename['configuration'], 'gID=' . $_GET['gID'] . '&cID=' . $cInfo->configuration_id . '&action=edit') . '">' . owpImageButton('button_edit.gif', IMAGE_EDIT) . '</a>');
            $contents[] = array('text' => '<br>' . $cInfo->configuration_description);
            $contents[] = array('text' => '<br>' . TEXT_INFO_DATE_ADDED . ' ' . owpDateShort($cInfo->date_added));
            if (owpNotNull($cInfo->last_modified)) {
                $contents[] = array('text' => TEXT_INFO_LAST_MODIFIED . ' ' . owpDateShort($cInfo->last_modified));
            }
        }
        break;
    <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>
Ejemplo n.º 5
0
        $contents[] = array('text' => '<br>' . TEXT_INFO_ADDRESS_FORMAT . '<br>' . owpInputField('address_format_id'));
        $contents[] = array('align' => 'center', 'text' => '<br>' . owpImageSubmit('button_insert.gif', IMAGE_INSERT) . '&nbsp;<a href="' . owpLink($owpFilename['countries'], 'page=' . $_GET['page']) . '">' . owpImageButton('button_cancel.gif', IMAGE_CANCEL) . '</a>');
        break;
    case 'edit':
        $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_COUNTRY . '</b>');
        $contents = array('form' => owpDrawForm('countries', $owpFilename['countries'], 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id . '&action=save'));
        $contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
        $contents[] = array('text' => '<br>' . TEXT_INFO_COUNTRY_NAME . '<br>' . owpInputField('countries_name', $cInfo->countries_name));
        $contents[] = array('text' => '<br>' . TEXT_INFO_COUNTRY_CODE_2 . '<br>' . owpInputField('countries_iso_code_2', $cInfo->countries_iso_code_2));
        $contents[] = array('text' => '<br>' . TEXT_INFO_COUNTRY_CODE_3 . '<br>' . owpInputField('countries_iso_code_3', $cInfo->countries_iso_code_3));
        $contents[] = array('text' => '<br>' . TEXT_INFO_ADDRESS_FORMAT . '<br>' . owpInputField('address_format_id', $cInfo->address_format_id));
        $contents[] = array('align' => 'center', 'text' => '<br>' . owpImageSubmit('button_update.gif', IMAGE_UPDATE) . '&nbsp;<a href="' . owpLink($owpFilename['countries'], 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id) . '">' . owpImageButton('button_cancel.gif', IMAGE_CANCEL) . '</a>');
        break;
    case 'delete':
        $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_COUNTRY . '</b>');
        $contents = array('form' => owpDrawForm('countries', $owpFilename['countries'], 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id . '&action=deleteconfirm'));
        $contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
        $contents[] = array('text' => '<br><b>' . $cInfo->countries_name . '</b>');
        $contents[] = array('align' => 'center', 'text' => '<br>' . owpImageSubmit('button_delete.gif', IMAGE_UPDATE) . '&nbsp;<a href="' . owpLink($owpFilename['countries'], 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id) . '">' . owpImageButton('button_cancel.gif', IMAGE_CANCEL) . '</a>');
        break;
    default:
        if (is_object($cInfo)) {
            $heading[] = array('text' => '<b>' . $cInfo->countries_name . '</b>');
            $contents[] = array('align' => 'center', 'text' => '<a href="' . owpLink($owpFilename['countries'], 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id . '&action=edit') . '">' . owpImageButton('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . owpLink($owpFilename['countries'], 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id . '&action=delete') . '">' . owpImageButton('button_delete.gif', IMAGE_DELETE) . '</a>');
            $contents[] = array('text' => '<br>' . TEXT_INFO_COUNTRY_NAME . '<br>' . $cInfo->countries_name);
            $contents[] = array('text' => '<br>' . TEXT_INFO_COUNTRY_CODE_2 . ' ' . $cInfo->countries_iso_code_2);
            $contents[] = array('text' => '<br>' . TEXT_INFO_COUNTRY_CODE_3 . ' ' . $cInfo->countries_iso_code_3);
            $contents[] = array('text' => '<br>' . TEXT_INFO_ADDRESS_FORMAT . ' ' . $cInfo->address_format_id);
        }
        break;
}
Ejemplo n.º 6
0
$contents = array();
switch ($_GET['action']) {
    case 'new':
        $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_NEW_LANGUAGE . '</b>');
        $contents = array('form' => owpDrawForm('languages', $owpFilename['languages'], 'action=insert'));
        $contents[] = array('text' => TEXT_INFO_INSERT_INTRO);
        $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_NAME . '<br>' . owpInputField('name'));
        $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_ISO_639_2 . '<br>' . owpInputField('iso_639_2'));
        $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_ISO_639_1 . '<br>' . owpInputField('iso_639_1'));
        $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_SORT_ORDER . '<br>' . owpInputField('sort_order'));
        $contents[] = array('text' => '<br>' . owpCheckboxField('default') . ' ' . TEXT_SET_DEFAULT);
        $contents[] = array('align' => 'center', 'text' => '<br>' . owpImageSubmit('button_insert.gif', IMAGE_INSERT) . ' <a href="' . owpLink($owpFilename['languages'], 'page=' . $_GET['page'] . '&lID=' . $_GET['lID']) . '">' . owpImageButton('button_cancel.gif', IMAGE_CANCEL) . '</a>');
        break;
    case 'edit':
        $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_LANGUAGE . '</b>');
        $contents = array('form' => owpDrawForm('languages', $owpFilename['languages'], 'page=' . $_GET['page'] . '&lID=' . $lInfo->languages_id . '&action=save'));
        $contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
        $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_NAME . '<br>' . owpInputField('name', $lInfo->name));
        $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_ISO_639_2 . '<br>' . owpInputField('iso_639_2', $lInfo->iso_639_2));
        $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_ISO_639_1 . '<br>' . owpInputField('iso_639_1', $lInfo->iso_639_1));
        $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_SORT_ORDER . '<br>' . owpInputField('sort_order', $lInfo->sort_order));
        if (DEFAULT_LANGUAGE != $lInfo->iso_639_2) {
            $contents[] = array('text' => '<br>' . owpCheckboxField('default') . ' ' . TEXT_SET_DEFAULT);
        }
        $contents[] = array('align' => 'center', 'text' => '<br>' . owpImageSubmit('button_update.gif', IMAGE_UPDATE) . ' <a href="' . owpLink($owpFilename['languages'], 'page=' . $_GET['page'] . '&lID=' . $lInfo->languages_id) . '">' . owpImageButton('button_cancel.gif', IMAGE_CANCEL) . '</a>');
        break;
    case 'delete':
        $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_LANGUAGE . '</b>');
        $contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
        $contents[] = array('text' => '<br><b>' . $lInfo->name . '</b>');
        $contents[] = array('align' => 'center', 'text' => '<br>' . ($remove_language ? '<a href="' . owpLink($owpFilename['languages'], 'page=' . $_GET['page'] . '&lID=' . $lInfo->languages_id . '&action=deleteconfirm') . '">' . owpImageButton('button_delete.gif', IMAGE_DELETE) . '</a>' : '') . ' <a href="' . owpLink($owpFilename['languages'], 'page=' . $_GET['page'] . '&lID=' . $lInfo->languages_id) . '">' . owpImageButton('button_cancel.gif', IMAGE_CANCEL) . '</a>');
Ejemplo n.º 7
0
    case 'restore':
        $heading[] = array('text' => '<b>' . $buInfo->date . '</b>');
        $contents[] = array('text' => owpBreakString(sprintf(TEXT_INFO_RESTORE, OWP_BACKUP_PATH . ($buInfo->compression != TEXT_NO_EXTENSION ? substr($buInfo->file, 0, strrpos($buInfo->file, '.')) : $buInfo->file), $buInfo->compression != TEXT_NO_EXTENSION ? TEXT_INFO_UNPACK : ''), 35, ' '));
        $contents[] = array('align' => 'center', 'text' => '<br><a href="' . owpLink($owpFilename['backup'], 'file=' . $buInfo->file . '&action=restorenow') . '">' . owpImageButton('button_restore.gif', IMAGE_RESTORE) . '</a>&nbsp;<a href="' . owpLink($owpFilename['backup'], 'file=' . $buInfo->file) . '">' . owpImageButton('button_cancel.gif', IMAGE_CANCEL) . '</a>');
        break;
    case 'restorelocal':
        $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_RESTORE_LOCAL . '</b>');
        $contents = array('form' => owpDrawForm('restore', $owpFilename['backup'], 'action=restorelocalnow', 'post', 'enctype="multipart/form-data"'));
        $contents[] = array('text' => TEXT_INFO_RESTORE_LOCAL . '<br><br>' . TEXT_INFO_BEST_THROUGH_HTTPS);
        $contents[] = array('text' => '<br>' . owpFileField('sql_file'));
        $contents[] = array('text' => TEXT_INFO_RESTORE_LOCAL_RAW_FILE);
        $contents[] = array('align' => 'center', 'text' => '<br>' . owpImageSubmit('button_restore.gif', IMAGE_restore) . '&nbsp;<a href="' . owpLink($owpFilename['backup']) . '">' . owpImageButton('button_cancel.gif', IMAGE_CANCEL) . '</a>');
        break;
    case 'delete':
        $heading[] = array('text' => '<b>' . $buInfo->date . '</b>');
        $contents = array('form' => owpDrawForm('delete', $owpFilename['backup'], 'file=' . $buInfo->file . '&action=deleteconfirm'));
        $contents[] = array('text' => TEXT_DELETE_INTRO);
        $contents[] = array('text' => '<br><b>' . $buInfo->file . '</b>');
        $contents[] = array('align' => 'center', 'text' => '<br>' . owpImageSubmit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . owpLink($owpFilename['backup'], 'file=' . $buInfo->file) . '">' . owpImageButton('button_cancel.gif', IMAGE_CANCEL) . '</a>');
        break;
    default:
        if (is_object($buInfo)) {
            $heading[] = array('text' => '<b>' . $buInfo->date . '</b>');
            $contents[] = array('align' => 'center', 'text' => '<a href="' . owpLink($owpFilename['backup'], 'file=' . $buInfo->file . '&action=restore') . '">' . owpImageButton('button_restore.gif', IMAGE_RESTORE) . '</a> <a href="' . owpLink($owpFilename['backup'], 'file=' . $buInfo->file . '&action=delete') . '">' . owpImageButton('button_delete.gif', IMAGE_DELETE) . '</a>');
            $contents[] = array('text' => '<br>' . TEXT_INFO_DATE . ' ' . $buInfo->date);
            $contents[] = array('text' => TEXT_INFO_SIZE . ' ' . $buInfo->size);
            $contents[] = array('text' => '<br>' . TEXT_INFO_COMPRESSION . ' ' . $buInfo->compression);
        }
        break;
}
if (owpNotNull($heading) && owpNotNull($contents)) {
<?php

/* ----------------------------------------------------------------------
   $Id: owp_loginbox.php,v 1.2 2003/05/05 16:47:38 r23 Exp $

   OSIS WebPrinter for your Homepage
   http://www.osisnet.de
   
   Ralf Zschemisch
   http://www.r23.de/
   
   Copyright (c) 2003 r23
   ----------------------------------------------------------------------
   Released under the GNU General Public License
   ---------------------------------------------------------------------- */
?>

<!-- loginbox //-->
          <tr>
            <td>
<?php 
$heading = array();
$contents = array();
$heading[] = array('text' => BOX_HEADING_LOGIN, 'link' => owpLink($owpFilename['login']));
$contents[] = array('text' => '<table border="0" width="100%" cellspacing="0" cellpadding="0">' . owpDrawForm('login', $owpFilename['login'], 'action=process') . "\n" . '  <tr>' . "\n" . '    <td class="main">' . TEXT_INFO_USER_EMAIL . '</td>' . "\n" . '  </tr>' . "\n" . '  <tr>' . "\n" . '    <td>' . owpInputField('email_address') . '</td>' . "\n" . '  </tr>' . "\n" . '  <tr>' . "\n" . '    <td class="main">' . TEXT_INFO_PASSWORD . '</td>' . "\n" . '  </tr>' . "\n" . '  <tr>' . "\n" . '    <td><input type="password" name="password"></td>' . "\n" . '  </tr>' . "\n" . '  <tr>' . "\n" . '    <td><input type="submit" name="Submit" value="Login"></td>' . "\n" . '  </tr>' . "\n" . '</form></table><br />' . "\n" . '<a href="' . owpLink($owpFilename['password_forgotten']) . '" class="menuBoxContentLink">' . BOX_PASSWORD_FORGOTTEN . '</a><br>' . '<a href="' . owpLink($owpFilename['create_account']) . '" class="menuBoxContentLink">' . BOX_CREATE_ACCOUNT . '</a>');
$box = new box();
echo $box->menuBox($heading, $contents);
?>
            </td>
          </tr>
<!-- loginbox_eof //-->
        <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
          <tr>
            <td colspan="3" bgcolor="#000000"><?php 
echo owpTransLine();
?>
</td>
          </tr>
          <tr>
            <td colspan="3"><?php 
echo owpTransLine('1', '5');
?>
</td>
          </tr>
          <tr>
            <td colspan="3"><?php 
echo owpDrawForm('password_forgotten', password_forgotten, 'action=process');
?>
<table>
              <tr>
                <td class="main"><?php 
echo TEXT_INFO_USER_EMAIL;
?>
&nbsp;</td>
                <td><?php 
echo owpInputField('email_address');
?>
</td>
              </tr>
              <tr>
                <td colspan="2"><?php 
echo owpTransLine('1', '5');
Ejemplo n.º 10
0
        <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
          <tr>
            <td colspan="3" bgcolor="#000000"><?php 
echo owpTransLine();
?>
</td>
          </tr>
          <tr>
            <td colspan="3"><?php 
echo owpTransLine('1', '5');
?>
</td>
          </tr>
          <tr>
            <td colspan="3"><?php 
echo owpDrawForm('login', $owpFilename['login'], 'action=process');
?>
<table>
              <tr>
                <td class="main"><?php 
echo TEXT_INFO_USER_EMAIL;
?>
&nbsp;</td>
                <td><?php 
echo owpInputField('email_address');
?>
</td>
              </tr>
              <tr>
                <td class="main"><?php 
echo TEXT_INFO_PASSWORD;
Ejemplo n.º 11
0
                  <tr>
                    <td align="right" colspan="2"><?php 
    echo '<a href="' . owpLink($owpFilename['newsletters'], 'action=new') . '">' . owpImageButton('button_new_newsletter.gif', IMAGE_NEW_NEWSLETTER) . '</a>';
    ?>
</td>
                  </tr>
                </table></td>
              </tr>
            </table></td>
<?php 
    $heading = array();
    $contents = array();
    switch ($_GET['action']) {
        case 'delete':
            $heading[] = array('text' => '<b>' . $nInfo->title . '</b>');
            $contents = array('form' => owpDrawForm('newsletters', $owpFilename['newsletters'], 'page=' . $_GET['page'] . '&nID=' . $nInfo->newsletters_id . '&action=deleteconfirm'));
            $contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
            $contents[] = array('text' => '<br><b>' . $nInfo->title . '</b>');
            $contents[] = array('align' => 'center', 'text' => '<br>' . owpImageSubmit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . owpLink($owpFilename['newsletters'], 'page=' . $_GET['page'] . '&nID=' . $_GET['nID']) . '">' . owpImageButton('button_cancel.gif', IMAGE_CANCEL) . '</a>');
            break;
        default:
            if (is_object($nInfo)) {
                $heading[] = array('text' => '<b>' . $nInfo->title . '</b>');
                if ($nInfo->locked > 0) {
                    $contents[] = array('align' => 'center', 'text' => '<a href="' . owpLink($owpFilename['newsletters'], 'page=' . $_GET['page'] . '&nID=' . $nInfo->newsletters_id . '&action=new') . '">' . owpImageButton('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . owpLink($owpFilename['newsletters'], 'page=' . $_GET['page'] . '&nID=' . $nInfo->newsletters_id . '&action=delete') . '">' . owpImageButton('button_delete.gif', IMAGE_DELETE) . '</a> <a href="' . owpLink($owpFilename['newsletters'], 'page=' . $_GET['page'] . '&nID=' . $nInfo->newsletters_id . '&action=preview') . '">' . owpImageButton('button_preview.gif', IMAGE_PREVIEW) . '</a> <a href="' . owpLink($owpFilename['newsletters'], 'page=' . $_GET['page'] . '&nID=' . $nInfo->newsletters_id . '&action=send') . '">' . owpImageButton('button_send.gif', IMAGE_SEND) . '</a> <a href="' . owpLink($owpFilename['newsletters'], 'page=' . $_GET['page'] . '&nID=' . $nInfo->newsletters_id . '&action=unlock') . '">' . owpImageButton('button_unlock.gif', IMAGE_UNLOCK) . '</a>');
                } else {
                    $contents[] = array('align' => 'center', 'text' => '<a href="' . owpLink($owpFilename['newsletters'], 'page=' . $_GET['page'] . '&nID=' . $nInfo->newsletters_id . '&action=preview') . '">' . owpImageButton('button_preview.gif', IMAGE_PREVIEW) . '</a> <a href="' . owpLink($owpFilename['newsletters'], 'page=' . $_GET['page'] . '&nID=' . $nInfo->newsletters_id . '&action=lock') . '">' . owpImageButton('button_lock.gif', IMAGE_LOCK) . '</a>');
                }
                $contents[] = array('text' => '<br>' . TEXT_NEWSLETTER_DATE_ADDED . ' ' . owpDateShort($nInfo->date_added));
                if ($nInfo->status == '1') {
                    $contents[] = array('text' => TEXT_NEWSLETTER_DATE_SENT . ' ' . owpDateShort($nInfo->date_sent));
Ejemplo n.º 12
0
    ?>
</td>
                  </tr>
                </table></td>
              </tr>
            </table></td>
          </form></tr>
<?php 
} else {
    $sql = "SELECT admin_firstname, admin_lastname, admin_email_address \n            FROM " . $owpDBTable['administrators'] . " \n            WHERE admin_id = '" . owpDBInput($_SESSION['user_id']) . "'";
    $db->cacheSecs = 900;
    $admin_send_query = $db->CacheExecute($sql);
    $admin_send = $admin_send_query->fields;
    ?>
          <tr><?php 
    echo owpDrawForm('mail', $owpFilename['mail'], 'action=preview');
    ?>
            <td><table border="0" cellpadding="0" cellspacing="2">
              <tr>
                <td colspan="3"><?php 
    echo owpTransLine('1', '10');
    ?>
</td>
              </tr>
<?php 
    $user = array();
    $user[] = array('id' => '', 'text' => TEXT_SELECT_USER);
    $user[] = array('id' => '***', 'text' => TEXT_ALL_USER);
    $user[] = array('id' => '**D', 'text' => TEXT_NEWSLETTER_USER);
    $sql = "SELECT admin_gender, admin_firstname, admin_lastname, admin_email_address \n            FROM " . $owpDBTable['administrators'] . " \n            ORDER BY admin_lastname";
    $mail_query = $db->Execute($sql);
     $heading[] = array('text' => '<b>' . $fInfo->name . '</b>');
     $contents = array('form' => owpDrawForm('file', $owpFilename['file_manager'], 'info=' . urlencode($fInfo->name) . '&action=deleteconfirm'));
     $contents[] = array('text' => TEXT_DELETE_INTRO);
     $contents[] = array('text' => '<br><b>' . $fInfo->name . '</b>');
     $contents[] = array('align' => 'center', 'text' => '<br>' . owpImageSubmit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . owpLink($owpFilename['file_manager'], 'info=' . urlencode($fInfo->name)) . '">' . owpImageButton('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'new_folder':
     $heading[] = array('text' => '<b>' . TEXT_NEW_FOLDER . '</b>');
     $contents = array('form' => owpDrawForm('folder', $owpFilename['file_manager'], 'action=insert'));
     $contents[] = array('text' => TEXT_NEW_FOLDER_INTRO);
     $contents[] = array('text' => '<br>' . TEXT_NEW_FOLDER_NAME . '<br>' . owpInputField('folder_name'));
     $contents[] = array('align' => 'center', 'text' => '<br>' . ($directory_writeable ? owpImageSubmit('button_save.gif', IMAGE_SAVE) : '') . ' <a href="' . owpLink($owpFilename['file_manager'], 'info=' . urlencode($_GET['info'])) . '">' . owpImageButton('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'upload':
     $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_UPLOAD . '</b>');
     $contents = array('form' => owpDrawForm('file', $owpFilename['file_manager'], 'action=processuploads', 'post', 'enctype="multipart/form-data"'));
     $contents[] = array('text' => TEXT_UPLOAD_INTRO);
     for ($i = 1; $i < 6; $i++) {
         $file_upload .= owpFileField('file_' . $i) . '<br>';
     }
     $contents[] = array('text' => '<br>' . $file_upload);
     $contents[] = array('align' => 'center', 'text' => '<br>' . ($directory_writeable ? owpImageSubmit('button_upload.gif', IMAGE_UPLOAD) : '') . ' <a href="' . owpLink($owpFilename['file_manager'], 'info=' . urlencode($_GET['info'])) . '">' . owpImageButton('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 default:
     if (is_object($fInfo)) {
         $heading[] = array('text' => '<b>' . $fInfo->name . '</b>');
         if (!$fInfo->is_dir) {
             $contents[] = array('align' => 'center', 'text' => '<a href="' . owpLink($owpFilename['file_manager'], 'info=' . urlencode($fInfo->name) . '&action=edit') . '">' . owpImageButton('button_edit.gif', IMAGE_EDIT) . '</a>');
         }
         $contents[] = array('text' => '<br>' . TEXT_FILE_NAME . ' <b>' . $fInfo->name . '</b>');
         if (!$fInfo->is_dir) {
    ?>
      <tr>
        <td class="owp-title"><?php 
    echo HEADING_TITLE . ' : ' . $aInfo->admin_firstname . ' ' . $aInfo->admin_lastname;
    ?>
</td>
      </tr>
      </tr>
      <tr>
        <td><?php 
    echo owpTransLine('1', '10');
    ?>
</td>
      </tr>
        <tr><?php 
    echo owpDrawForm('user', $owpFilename['administrators'], 'page=' . $_GET['page'] . '&aID=' . $aInfo->admin_id . '&action=update', 'post');
    ?>
        <td class="formAreaTitle"><?php 
    echo CATEGORY_PERSONAL;
    ?>
</td>
      </tr>
      <tr>
        <td class="formArea"><table border="0" cellspacing="2" cellpadding="2">
          <tr>
            <td class="main"><?php 
    echo GENDER;
    ?>
</td>
            <td class="main"><?php 
    echo owpRadioField('admin_gender', 'm', false, $aInfo->admin_gender) . '&nbsp;&nbsp;' . MALE . '&nbsp;&nbsp;' . owpRadioField('admin_gender', 'f', false, $aInfo->admin_gender) . '&nbsp;&nbsp;' . FEMALE;