コード例 #1
0
ファイル: group.frm.php プロジェクト: jmathai/photos
} else {
    $update = false;
    $submit_src = 'create_group.gif';
}
if ($action == 'fotogroup.group_share_form') {
    $gp_form_mode = 'included';
} else {
    $gp_form_mode = 'standalone';
}
$type = isset($_GET['type']) ? $_GET['type'] : 'fotos';
$fv = new CFormValidator();
$fv->setForm('_group');
$fv->addElement('g_name', 'Name', '  - Please enter a name for your group.', 'length');
$fv->setDebugOutput(false);
$fv->setFunctionName('_val_group');
$fv->setJavascriptSubmit(true);
$fv->validate();
?>

<div style="width:545px; text-align:left;">
  <form action="/?action=fotobox.group_form.act" method="post" name="_group" style="display:inline;">
    <input type="hidden" name="g_public" value="0" />
    
    <div class="bold">
      <span class="f_off_accent">Step 1</span> Name your Group
    </div>
    <div style="padding-left:10px;">
      <input type="text" name="g_name" value="<?php 
if ($update === true) {
    echo $group_data['G_NAME'];
}
コード例 #2
0
    $fv = new CFormValidator();
    $fv->setForm('updateBilling');
    $fv->addElement('er_ccNameFirst', 'First Name', '  - Please enter your first name.', 'length');
    $fv->addElement('er_ccNameLast', 'Last Name', '  - Please enter your last name.', 'length');
    $fv->addElement('er_ccStreet', 'Address', '  - Please enter your address.', 'length');
    $fv->addElement('er_ccCity', 'City', '  - Please enter your city.', 'length');
    $fv->addElement('er_ccState', 'State', '  - Please select your state.', 'selectboxnull');
    $fv->addElement('er_ccZip', 'Zip', '  - Please enter your zipcode.', 'length');
    $fv->addElement('er_ccNum', 'Credit Card Number', '  - Please check make sure you typed your credit card number in correctly.', 'mod10');
    $fv->addElement('er_ccExpMonth', 'Expiration Month', '  - Please enter the month your credit card expires.', 'length');
    $fv->addElement('er_ccExpYear', 'Expiration Year', '  - Please enter the year your credit card expires.', 'length');
    $fv->addElement('er_ccCcv', 'Credit Card Verification Number', '  - Please enter the 3 digit CCV number on the back of your card.', 'length');
    $fv->setMaxElementsToDisplay(5);
    $fv->setDebugOutput(false);
    $fv->setFunctionName('_val_process');
    $fv->setJavascriptSubmit(false);
    $fv->validate();
    ?>
    <script>
      requireSSL(); // force ssl
    </script>
    <div>
      <div class="bold">Update your payment information</div>
      <div style="padding-bottom:10px;">
        You are updating the following subscription:<br />
        Item: <?php 
    echo $orderDetail['ecg_name'];
    ?>
<br />
        Amount: $<?php 
    echo $recurDetail['R_AMOUNT'];