Esempio n. 1
0
    <?php 
echo input_tag($form, "legal_name", ["placeholder" => "John Doe"]);
?>
    <?php 
echo error_display($form, "legal_name");
?>
  </div>

  <div class="form-group col-md-3 <?php 
echo $form->error_on("birthdate") ? "has-error" : "";
?>
">
    <?php 
echo label_tag("birthdate", "Birthdate");
?>
    <?php 
echo input_tag($form, "birthdate");
?>
    <?php 
echo error_display($form, "birthdate");
?>
  </div>

  <div class="form-group col-md-2">
    <label>Age</label>
    <input class="form-control" id="age" type="text" value="<?php 
echo age_from_birthdate(@$form->params["birthdate"]);
?>
" readonly>
  </div>
</div>
Esempio n. 2
0
echo input_tag($form, "assigned_tables");
?>
  <?php 
echo error_display($form, "assigned_tables");
?>
</div>

<div class="form-group <?php 
echo $form->error_on("vendor_license_number") ? "has-error" : "";
?>
">
  <?php 
echo label_tag("vendor_license_number", "Vendor License Number");
?>
  <?php 
echo input_tag($form, "vendor_license_number");
?>
  <?php 
echo error_display($form, "vendor_license_number");
?>
</div>

<div class="form-group">
  <?php 
echo label_tag("notes", "Notes");
?>
  <textarea class="form-control" rows="3" name="notes" id="notes"><?php 
echo htmlentities(@$form->params["notes"]);
?>
</textarea>
</div>
Esempio n. 3
0
      <label>
        <input type="checkbox" name="vendor" value="1" <?php 
if (@$form->params["vendor"]) {
    ?>
checked="checked"<?php 
}
?>
> <strong>Require Attendee to be Assigned to Vendor</strong>
      </label>
      <?php 
echo error_display($form, "vendor");
?>
    </div>
  </div>

<div class="form-group <?php 
echo $form->error_on("sort_order") ? "has-error" : "";
?>
">
  <?php 
echo label_tag("sort_order", "Sort Order");
?>
  <?php 
echo input_tag($form, "sort_order");
?>
  <?php 
echo error_display($form, "sort_order");
?>
  <span class="help-block">Controls the order the payment appears in dropdowns. Lower numbers are higher in the list.</span>
</div>
Esempio n. 4
0
    }
    ?>
          </label>
        </div>
      <?php 
}
?>
    </div>
    <?php 
echo error_display($form, "type");
?>
  </div>

  <div class="form-group col-sm-8 <?php 
echo $form->error_on("reason") ? "has-error" : "";
?>
">
    <?php 
echo label_tag("reason", "Reason");
?>
    <textarea class="form-control" rows="3" name="reason" id="reason"><?php 
echo htmlentities(@$form->params["reason"]);
?>
</textarea>
    <?php 
echo error_display($form, "reason");
?>
  </div>
</div>

Esempio n. 5
0
function status_report($name, $err)
{
    global $tpl;
    if (!$err) {
        $tmp = '<script>$.growl("' . ucphr("Information") . '","' . ucphr($name) . ' ' . 'ok' . '","' . IMAGE_INFO . '")</script>';
    } else {
        $tmp = '<script>$.growl("' . ucphr("Information") . '","<font color="red">' . ucphr($name) . ' ' . ucphr('FAILED') . '</font>","' . IMAGE_ERROR . '")</script>';
    }
    $tpl->append('messages', $tmp);
    if ($err) {
        error_display($err, true);
    }
    return 0;
}
function table_closed_interface_pos()
{
    global $tpl;
    date_default_timezone_set(get_conf(__FILE__, __LINE__, "default_timezone"));
    if (bill_orders_to_print($_SESSION['sourceid'])) {
        $_SESSION['select_all'] = 1;
        $err = bill_select_pos();
        if ($err) {
            error_display($err);
        }
        return 0;
    }
    $tpl->set_waiter_template_file('closed_table_pos');
    $paid = get_db_data(__FILE__, __LINE__, $_SESSION['common_db'], 'sources', "paid", $_SESSION['sourceid']);
    $total = table_total($_SESSION['sourceid']);
    $discount = get_db_data(__FILE__, __LINE__, $_SESSION['common_db'], 'sources', 'discount', $_SESSION['sourceid']);
    if ($total == 0 && $paid == 0) {
        $err = table_pay(1);
        status_report('PAYMENT', $err);
        $paid = get_db_data(__FILE__, __LINE__, $_SESSION['common_db'], 'sources', "paid", $_SESSION['sourceid']);
    }
    $tmp = navbar_tables_only_pos();
    $user = new user($_SESSION['userid']);
    if ($user->level[USER_BIT_CASHIER]) {
        $tmp = navbar_empty_pos();
    }
    $tpl->assign('navbar', $tmp);
    $tmp = '
		' . ucfirst(phr('TABLE_TOTAL_DISCOUNTED')) . ': <b>' . country_conf_currency(true) . ' ' . $total . '</b>
	';
    if ($discount != 0) {
        $discount = sprintf("%01.2f", abs($discount));
        $tmp .= '
		 (' . ucfirst(phr('DISCOUNT')) . ': ' . country_conf_currency(true) . ' ' . $discount . ')';
    }
    $tmp .= '<br />' . "\n";
    $tpl->assign('total', $tmp);
    if ($paid) {
        $tmp = '
		<FORM ACTION="orders.php" METHOD=POST>
		<INPUT TYPE="HIDDEN" NAME="command" VALUE="clear">
		' . ucfirst(phr('PAID_ALREADY')) . '<br/>
		' . ucfirst(phr('EMPTY_TABLE_EXPLAIN')) . '
		<INPUT TYPE="submit" value="' . ucfirst(phr('EMPTY_TABLE_BUTTON')) . '">
		</FORM>
		';
        $tmp .= '<br />' . "\n";
        $tpl->assign('clear', $tmp);
    }
    // user is not allowed to pay, so don't display the button
    if (!access_allowed(USER_BIT_MONEY)) {
        return 0;
    }
    $tmp = '
		<FORM ACTION="orders.php" METHOD=POST>
		<INPUT TYPE="HIDDEN" NAME="command" VALUE="pay">
		' . ucfirst(phr('PAID_ASK')) . '<br/>
		';
    if ($paid) {
        $tmp .= '
		<INPUT TYPE="hidden" name="data[paid]" value="0">
		<INPUT TYPE="submit" value="' . ucfirst(phr('NOT_PAID_BUTTON')) . '">
		<br/><br/>';
    } else {
        $tmp .= '
		<INPUT TYPE="hidden" name="data[paid]" value="1">
		<INPUT TYPE="submit" value="' . ucfirst(phr('PAID_BUTTON')) . '">
		<br/><br/>';
    }
    $tmp .= '
		</FORM>';
    $tmp .= '<br />' . "\n";
    $tpl->assign('pay', $tmp);
    return 0;
}
Esempio n. 7
0
        <div class="radio">
          <label>
            <input type="radio" name="payment_method" id="payment_method_<?php 
        echo $type->db_name;
        ?>
" value="<?php 
        echo $type->db_name;
        ?>
" <?php 
        if (@$form->params["payment_method"] == $type->db_name) {
            ?>
checked="checked"<?php 
        }
        ?>
>
            <?php 
        echo $type->name;
        ?>
          </label>
        </div>
      <?php 
    }
    ?>
      <?php 
    echo error_display($form, "payment_method");
    ?>
    </div>

  </div>
<?php 
}
Esempio n. 8
0
            </div>
          </div>

          <div class="form-group col-sm-6 <?php 
echo $form->error_on("blacklist_message") ? "has-error" : "";
?>
">
            <?php 
echo label_tag("blacklist_message", "Blacklist Message");
?>
            <textarea class="form-control" rows="4" name="blacklist_message" id="blacklist_message"><?php 
echo htmlentities(@$form->params["blacklist_message"]);
?>
</textarea>
            <?php 
echo error_display($form, "blacklist_message");
?>
          </div>
        </div>
      </div>
    </div>


    <div class="tab-pane" id="notes">
      <div class="form-group">
        <textarea class="form-control" rows="3" name="notes" id="notes"><?php 
echo htmlentities(@$form->params["note"]);
?>
</textarea>
      </div>
    </div>
Esempio n. 9
0
</title>
<style type="text/css">
@import "/css/core.css";
<?php 
if (session('externalcss')) {
    $Style->external_css(session('externalcss'));
}
$Style->display($Style->get_theme());
?>
</style>
<script type="text/javascript" src="/js/core.js"></script>
</head>
<body lang="en">
<!-- Start Error Display -->
<?php 
error_display();
?>
<!-- End Error Display -->
<?php 
if (!get('ajax') && file_exists(DIR . "/lang/" . LANG . "_header.php")) {
    require DIR . "/lang/" . LANG . "_header.php";
}
?>
<!-- Start Content Display -->
<div id="content">
<div class="pad">
<?php 
print $buffer;
?>
<div class="small clear" style="text-align:right">page generated in <?php 
print abs(microtime(true) - $__start__);
function todo_download()
{
    global $_TODO_FILENAME, $txt;
    $texts = $txt['download'];
    if (is_allowed_to('download') && is_allowed_to('see')) {
        if (isset($_GET['parsed'])) {
            $arr = todo_list_get();
            header('Content-Description: File Transfer');
            header('Content-Type: application/octet-stream');
            header('Content-Disposition: attachment; filename="parsed_' . $_TODO_FILENAME . '"');
            header('Expires: 0');
            header('Cache-Control: must-revalidate');
            header('Pragma: public');
            foreach ($arr as $todo) {
                if (strrpos($todo, '<done>') === 0) {
                    echo "\t", parse_todo($todo), "\r\n\r\n";
                } else {
                    if (strrpos($todo, '<imp>') === 0) {
                        echo '/!\\ ', parse_todo($todo), "\r\n\r\n";
                    } else {
                        echo parse_todo($todo), "\r\n\r\n";
                    }
                }
            }
            exit;
        } else {
            if (file_exists($_TODO_FILENAME)) {
                header('Content-Description: File Transfer');
                header('Content-Type: application/octet-stream');
                header('Content-Disposition: attachment; filename="' . $_TODO_FILENAME . '"');
                header('Expires: 0');
                header('Cache-Control: must-revalidate');
                header('Pragma: public');
                header('Content-Length: ' . filesize($_TODO_FILENAME));
                readfile($_TODO_FILENAME);
                exit;
            }
        }
        error_display($texts, false);
    } else {
        error_display($texts, true);
    }
}
Esempio n. 11
0
  <?php 
echo label_tag("password", "Password");
?>
  <?php 
echo input_tag($form, "password", ['type' => 'password']);
?>
  <?php 
echo error_display($form, "password");
?>
</div>

<div class="form-group <?php 
echo $form->error_on("admin") ? "has-error" : "";
?>
">
  <div class="checkbox-inline">
    <input type="hidden" name="admin"  value="0">
    <label>
      <input type="checkbox" name="admin" value="1" <?php 
if (@$form->params["admin"]) {
    ?>
checked="checked"<?php 
}
?>
> Admin
    </label>
    <?php 
echo error_display($form, "admin");
?>
  </div>
</div>
Esempio n. 12
0
echo error_display($form, "adult_relationship");
?>
          </div>

          <div class="form-group col-md-5 <?php 
echo $form->error_on("adult_phone_number") ? "has-error" : "";
?>
">
            <?php 
echo label_tag("adult_phone_number", "Phone Number");
?>
            <?php 
echo input_tag($form, "adult_phone_number", ["placeholder" => "555-555-5555"]);
?>
            <?php 
echo error_display($form, "adult_phone_number");
?>
          </div>
        </div>
      </div>
      <div>
        <h3> Privacy Notice </h3>
        <p>Information collected on this form is only used for identification.</p>
      </div>
    </div>
    <div class="col-sm-12 text-left">
      <p>* Required Field.</p>
    </div>
    <div class="col-sm-12 text-center">
      <button type="submit" class="btn btn-primary btn-lg">Submit</button>
    </div>
Esempio n. 13
0
         $orderid = 0;
     }
     if (isset($_REQUEST['operation'])) {
         $operation = $_REQUEST['operation'];
     } else {
         $operation = 0;
     }
     if ($orderid == 0 || $operation == 0) {
         $err = 1;
     } else {
         $err += bill_quantity($orderid, $operation);
     }
     status_report('QUANTITY_UPDATE', $err);
     $err = bill_select();
     if ($err) {
         error_display($err);
     }
     break;
 case 'bill_print':
     if (isset($_REQUEST['type'])) {
         $type = $_REQUEST['type'];
     }
     if (!bill_type_set($type)) {
         $err = bill_print();
         status_report('BILL_PRINT', $err);
         if (!$err) {
             // this allows bill_select to forget precedent selection
             $_REQUEST['keep_separated'] = 0;
         }
     }
     bill_select();
Esempio n. 14
0
    <?php 
}
?>
  </select>
  <?php 
echo error_display($form, "badge_type");
?>
</div>

<div class="form-group <?php 
echo $form->error_on("badge_name") ? "has-error" : "";
?>
">
  <?php 
echo label_tag("badge_name", "Badge Name");
?>
  <?php 
echo input_tag($form, "badge_name");
?>
  <?php 
echo error_display($form, "badge_name");
?>
</div>

<h3>Notes on Attendee</h3>
<div class="form-group">
  <textarea class="form-control" name="notes" id="notes"><?php 
echo htmlentities(@$form->params["note"]);
?>
</textarea>
</div>
Esempio n. 15
0
function exit_clean()
{
    error_display();
    exit;
}
Esempio n. 16
0
echo input_tag($form, "username");
?>
      <?php 
echo error_display($form, "username");
?>
    </div>

    <div class="form-group <?php 
echo $form->error_on("password") ? "has-error" : "";
?>
">
      <?php 
echo label_tag("password", "Password *");
?>
      <?php 
echo input_tag($form, "password", ["type" => "password"]);
?>
      <?php 
echo error_display($form, "password");
?>
    </div>
  </div>

  <div class="col-sm-12 text-center">
    <button type="submit" class="btn btn-primary btn-lg">Login</button>
  </div>
</form>

</div><!-- /.container -->
<?php 
include "_partials/footer.php";
Esempio n. 17
0
echo $current_level->name;
?>
 ($0) <span class="text-muted">Current Level</span>
    </label>
  </div>

  <?php 
foreach ($upgrades as $upgrade) {
    ?>
    <div class="radio">
      <label>
        <input type="radio" name="admission_level" value="<?php 
    echo $upgrade->to;
    ?>
">
        <?php 
    echo $upgrade->to_name;
    ?>
 (<?php 
    echo currency($upgrade->price_for($form->attendee));
    ?>
)
      </label>
    </div>
  <?php 
}
?>
  <?php 
echo error_display($form, "admission_level");
?>
</div>
Esempio n. 18
0
  <h4 class="text-muted"><?php 
    echo $form->attendee->vendor()->display_name();
    ?>
</h4>
<?php 
}
?>
</div>

<div class="form-group">
  <div>
    <div class="checkbox <?php 
echo $form->error_on("canceled") ? "has-error" : "";
?>
">
      <input type="hidden" name="canceled"  value="0">
      <label>
        <input type="checkbox" name="canceled" value="1" <?php 
if (@$form->params["canceled"]) {
    ?>
checked="checked"<?php 
}
?>
> Confirm this action.
      </label>
      <?php 
echo error_display($form, "canceled");
?>
    </div>
  </div>
</div>