<td><?php 
echo ZENCART_ADMIN_USERNAME;
?>
</td>
    <td><?php 
echo html_input_field('zencart_username', $username ? $username : '', '');
?>
</td>
  </tr>
  <tr>
    <td><?php 
echo ZENCART_ADMIN_PASSWORD;
?>
</td>
    <td><?php 
echo html_password_field('zencart_password', $password ? $password : '', '');
?>
</td>
  </tr>
  <tr>
    <td><?php 
echo ZENCART_TAX_CLASS;
?>
</td>
    <td><?php 
echo html_input_field('zencart_tax_class', $tax_class ? $tax_class : '', 'size="40"');
?>
</td>
  </tr>
  <tr>
    <td><?php 
?>
<div id="override_order" title="<?php 
echo TEXT_CREDIT_LIMIT_TITLE;
?>
">
	<p><?php 
echo TEXT_CREDIT_LIMIT_DESC;
?>
</p>
	<p>
	  <?php 
echo TEXT_ADMIN_USER . '&nbsp;' . html_input_field('override_user', '', 'onblur="document.getElementById(\'override_user\').value = this.value;"', true);
?>
<br />
	  <?php 
echo TEXT_ADMIN_PASS . '&nbsp;' . html_password_field('override_pass', '', true, 'onblur="document.getElementById(\'override_pass\').value = this.value;"');
?>
	</p>
	<p align="right"><?php 
echo html_icon('actions/go-next.png', TEXT_CONTINUE, 'small', 'onclick="checkOverride();"');
?>
</p>
</div>
<h1><?php 
echo constant('ORD_TEXT_' . JOURNAL_ID . '_WINDOW_TITLE');
?>
</h1>
<table class="ui-widget" style="width:97%;">
 <tbody class="ui-widget-content">
  <tr>
    <td>
    <td align="right"><?php 
echo TEXT_PASSWORD . ' ' . html_password_field('password_new', '');
?>
</td>
    <td><?php 
echo '&nbsp;';
?>
</td>
    <td><?php 
echo GEN_EMAIL . ' ' . html_input_field('admin_email', $uInfo->admin_email, 'size="33"');
?>
</td>
   </tr>
   <tr>
    <td align="right"><?php 
echo TEXT_CONFIRM_PASSWORD . ' ' . html_password_field('password_conf', '');
?>
</td>
    <td><?php 
echo '&nbsp;';
?>
</td>
    <td><?php 
echo GEN_ACCOUNT_LINK . ' ' . html_pull_down_menu('account_id', gen_get_contact_array_by_type('e'), $uInfo->account_id, '');
?>
</td>
   </tr>
   <tr>
    <td><?php 
echo TEXT_SELECT_ROLE . ' ' . html_pull_down_menu('fill_role', $fill_all_roles, $uInfo->role, 'onchange="submitToDo(\'fill_role\')"');
?>
	<td><?php 
echo TEXT_DB_USER;
?>
</td>
	<td><?php 
echo html_input_field('db_username', $_POST['db_username']);
?>
</td>
   </tr>
   <tr>
	<td><?php 
echo TEXT_DB_PASSWORD;
?>
</td>
	<td><?php 
echo html_password_field('db_password');
?>
</td>
   </tr>

   <tr class="ui-widget-header"><th colspan="2"><?php 
echo TEXT_FISCAL_INFO;
?>
</th></tr>
   <tr>
	<td><?php 
echo TEXT_FY_MONTH_INFO;
?>
</td>
	<td><?php 
echo html_pull_down_menu('fy_month', $sel_fy_month, $_POST['fy_month'] ? $_POST['fy_month'] : '01');
		<td><?php 
echo SETUP_CO_MGR_DB_USER;
?>
</td>
		<td><?php 
echo html_input_field('db_user', $db_user, '', true);
?>
</td>
	  </tr>
	  <tr>
		<td><?php 
echo SETUP_CO_MGR_DB_PW;
?>
</td>
		<td><?php 
echo html_password_field('db_pw', '', true);
?>
</td>
	  </tr>
	  <tr>
		<td><?php 
echo SETUP_CO_MGR_CO_NAME;
?>
</td>
		<td><?php 
echo html_input_field('co_name', $co_name, 'size="50"', true);
?>
</td>
	  </tr>
	</table>
    <table>
                <td width="35%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php 
echo TEXT_LOGIN_NAME;
?>
</td>
                <td width="65%"><?php 
echo html_input_field('admin_name', isset($_POST['admin_name']) ? $_POST['admin_name'] : '');
?>
</td>
              </tr>
              <tr>
                <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php 
echo TEXT_LOGIN_PASS;
?>
</td>
                <td><?php 
echo html_password_field('admin_pass', '');
?>
</td>
              </tr>
<?php 
if (!$single_company) {
    ?>
              <tr>
                <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php 
    echo TEXT_LOGIN_COMPANY;
    ?>
</td>
                <td><?php 
    echo html_pull_down_menu('company', $companies, $company_index);
    ?>
</td>
	  <td><?php 
    echo GEN_ADM_TOOLS_ENCRYPT_PW;
    ?>
</td>
	  <td><?php 
    echo html_password_field('new_encrypt_key');
    ?>
</td>
	</tr>
    <tr>
	  <td><?php 
    echo GEN_ADM_TOOLS_ENCRYPT_PW_CONFIRM;
    ?>
</td>
	  <td><?php 
    echo html_password_field('new_encrypt_confirm');
    ?>
</td>
	</tr>
    <tr>
	  <td colspan="2" align="right"><?php 
    echo html_button_field('encrypt_key', GEN_ADM_TOOLS_BTN_SAVE, 'onclick="submitToDo(\'encrypt_key\')"');
    ?>
</td>
	</tr>
 </tbody>
</table>
</fieldset>
<?php 
}
?>
function cfg_password($text, $key = '')
{
    $name = $key ? 'configuration[' . $key . ']' : 'configuration_value';
    return html_password_field($name, $text);
}
    <td><?php 
echo OSCOMMERCE_ADMIN_USERNAME;
?>
</td>
    <td><?php 
echo html_input_field('oscommerce_username', $username ? $username : '', '');
?>
</td>
  </tr>
  <tr>
    <td><?php 
echo OSCOMMERCE_ADMIN_PASSWORD;
?>
</td>
    <td><?php 
echo html_password_field('oscommerce_password', $password ? $password : '', '');
?>
</td>
  </tr>
  <tr>
    <td><?php 
echo OSCOMMERCE_TAX_CLASS;
?>
</td>
    <td><?php 
echo html_input_field('oscommerce_tax_class', $tax_class ? $tax_class : '', 'size="40"');
?>
</td>
  </tr>
  <tr>
    <td><?php 
?>
</td></tr>
		  <tr><td><?php 
echo '&nbsp;';
?>
</td></tr>
		  <tr><td><?php 
echo SETUP_CO_MGR_DB_USER . html_input_field('db_user', '', '', true);
?>
</td></tr>
		  <tr><td><?php 
echo '&nbsp;';
?>
</td></tr>
		  <tr><td><?php 
echo SETUP_CO_MGR_DB_PW . html_password_field('db_pw', '', true);
?>
</td></tr>
		  <tr><td><?php 
echo '&nbsp;';
?>
</td></tr>
		  <tr><td><?php 
echo SETUP_CO_MGR_CO_NAME . html_input_field('company_name', '', 'size="50"', true);
?>
</td></tr>
		  <tr><td><?php 
echo '&nbsp;';
?>
</td></tr>
		  <tr><td align="right"><?php 
         echo '  </tr>' . chr(10);
     }
     echo '  <tr>' . chr(10);
     echo '    <th colspan="3" class="ui-state-highlight">' . TEXT_APPROVALS . '</th>' . chr(10);
     if ($value['mfg'] == '1') {
         if (!$mfg_approved) {
             echo '    <td align="center">' . TEXT_MFG . '&nbsp;' . html_pull_down_menu('user_mfg', $user_list, $user_mfg) . '&nbsp;' . html_password_field('pw_mfg', '') . '</td>' . chr(10);
         } else {
             echo '    <td align="center">' . TEXT_MFG . ' - ' . get_user_name($value['mfg_id']) . '</td>' . chr(10);
         }
     } else {
         echo '    <td align="center">' . TEXT_MFG . ' - ' . TEXT_NA . '</td>' . chr(10);
     }
     if ($value['qa'] == '1') {
         if (!$qa_approved) {
             echo '    <td align="center">' . TEXT_QA . '&nbsp;' . html_pull_down_menu('user_qa', $user_list, $user_qa) . '&nbsp;' . html_password_field('pw_qa', '') . '</td>' . chr(10);
         } else {
             echo '    <td align="center">' . TEXT_QA . ' - ' . get_user_name($value['qa_id']) . '</td>' . chr(10);
         }
     } else {
         echo '    <td align="center">' . TEXT_QA . ' - ' . TEXT_NA . '</td>' . chr(10);
     }
     echo '    <td align="center">' . html_button_field('complete', TEXT_UPDATE, 'onclick="submitSeq(' . $value['step'] . ', \'save_step\')"') . '</td>' . chr(10);
     echo '  </tr>' . chr(10);
 } else {
     echo '  <tr class="' . ($odd ? 'odd' : 'even') . '">' . chr(10);
     echo '    <td align="center">' . $value['step'] . '</td>' . chr(10);
     echo '    <td>' . $value['task_name'] . '</td>' . chr(10);
     if ($value['data_entry'] == '1') {
         echo '    <td>' . $value['description'] . '<br />' . TEXT_ENTRY_VALUE . ' ';
         echo html_input_field('data_temp', $data_value ? $data_value : $value['data_value'], 'readonly="readonly" size="65" maxlength="64"');
Exemple #12
0
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the   |
// | GNU General Public License for more details.                    |
// +-----------------------------------------------------------------+
//  Path: /modules/shipping/methods/endicia/signup.php
//
gen_pull_language('contacts');
gen_pull_language('payment');
load_method_language($mod_dir . $method);
$output = array('width' => '400', 'action' => 'changePassPhrase', 'method' => $method);
$html = '<h1>' . ENDICIA_CHANGE_PASSPHRASE . '</h1>' . "\n";
$html .= '<table class="ui-widget" style="margin-left:auto;margin-right:auto">' . "\n";
$html .= ' <thead class="ui-widget-header"><tr><th colspan="2">' . '&nbsp;' . '</th></tr></thead>' . "\n";
$html .= ' <tbody class="ui-widget-content">' . "\n";
$html .= '  <tr>' . "\n";
$html .= '   <td colspan="2">' . SHIPPING_ENDICIA_PASSPHRASE_CHANGE_DESC . '</td>' . "\n";
$html .= '  </tr>' . "\n";
$html .= '  <tr>' . "\n";
$html .= '   <td>' . TEXT_PASSPHRASE_NOW . '</td>' . "\n";
$html .= '   <td>' . html_password_field('pass_phrase_current', '', true) . '</td>' . "\n";
$html .= '  </tr>' . "\n";
$html .= '  <tr>' . "\n";
$html .= '   <td>' . TEXT_PASSPHRASE . '</td>' . "\n";
$html .= '   <td>' . html_password_field('pass_phrase_new', '', true) . '</td>' . "\n";
$html .= '  </tr>' . "\n";
$html .= '  <tr>' . "\n";
$html .= '   <td>' . TEXT_PASSPHRASE_DUP . '</td>' . "\n";
$html .= '   <td>' . html_password_field('pass_phrase_confirm', '', true) . '</td>' . "\n";
$html .= '  </tr>' . "\n";
$html .= ' </tbody>' . "\n";
$html .= '</table>' . "\n";
$output['html'] = $html;