<?php 
echo $form->error('agency_error', 'alert alert-danger alert-dismissible');
echo $form->error('agency_success', 'alert-success alert-dismissible');
?>


                <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                    <h2 class="" style="font-size:26px; line-height:30px;">Add Agency</h2>
                    <div class="clearfix"></div>
                    <div id="reg">
                        <form action="<?php 
echo WEBSITE_URL;
?>
admin/user/action_add_agency.php" method="POST">
                            <input name="name" value="<?php 
echo $form->value('name');
?>
" class="form-control inputone" type="text" placeholder="AGENCY NAME"/>
                            <input name="contact" value="<?php 
echo $form->value('contact');
?>
" class="form-control" type="text" placeholder="PRIMARY CONTACT"/>
                            <input name="email" value="<?php 
echo $form->value('email');
?>
" class="form-control" type="text" placeholder="AGENCY Email"/>
                            <input name="phone" value="<?php 
echo $form->value('phone');
?>
" class="form-control" type="text" placeholder="PHONE"/>
                            <input name="add_agency" type="submit" value="ADD" class="form-control btn"/>
Example #2
0
    if ($_GET['leads'] == "success") {
        ?>
                                <p class="alert alert-success">
                                    <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                                    A new lead has been submitted successfully</p>
                                <?php 
    }
}
?>

                        <form action="<?php 
echo WEBSITE_URL;
?>
action_new_leads.php" method="post">
                            <input name="first_name" value="<?php 
echo $Form->value('first_name');
?>
" class="form-control1 inputone1" type="text" placeholder="FIRSTNAME">
                                <input name="last_name" value="<?php 
echo $Form->value('last_name');
?>
" class="form-control1" type="text" placeholder="LASTNAME">
                                    <select name="lead_result" class="form-control1">
                                        <option value="">Lead Result</option>
                                        <option value="Y" <?php 
echo $Form->value('lead_result') == 'Y' ? 'selected' : '';
?>
>Yes</option>
                                        <option value="N" <?php 
echo $Form->value('lead_result') == 'N' ? 'selected' : '';
?>
$form = new Form(array('full_name' => array('label' => 'Nombre/s', 'type' => 'string', 'required' => true, 'maxlength' => $MAX_LENGTH_NAME), 'email' => array('label' => 'Correo electrónico', 'type' => 'email', 'required' => true), 'reason' => array('label' => 'Motivo', 'type' => 'string', 'required' => true, 'select' => $REASONS), 'subject' => array('label' => 'Asunto', 'type' => 'string', 'required' => true, 'maxlength' => $MAX_LENGTH_SUBJECT), 'message' => array('label' => 'Mensaje', 'type' => 'string', 'required' => true, 'maxlength' => $MAX_LENGTH_MESSAGE)));
$errors = $form->validate_whitelist();
if (!empty($errors)) {
    Response::json(400, $errors);
}
$errors = $form->validate_required();
if (!empty($errors)) {
    Response::json(400, $errors);
}
$form->fill_values();
$errors = $form->validate_format();
if (!empty($errors)) {
    Response::json(400, $errors);
}
// Get form values
$full_name = $form->value('full_name');
$email = $form->value('email');
$reason = $form->value('reason');
$subject = $form->value('subject');
$message = $form->value('message');
// Message template
$message_body = file_get_contents('../templates/_email_contact.html');
$message_body = str_replace(array('{{ full_name }}', '{{ email }}', '{{ reason }}', '{{ subject }}', '{{ message }}'), array($full_name, $email, $REASONS[$reason], $subject, $message), $message_body);
// Mail build
$mailer = new SendGrid(Config::$SENDGRID_USERNAME, Config::$SENDGRID_PASSWORD, Config::$SENDGRID_OPTIONS);
$message = new SendGrid\Email();
$message->addTo(Config::$CONTACT_FORM_TO);
$message->setReplyTo($email);
$message->setFrom($email);
$message->setFromName('Contacto Jedbangers');
$message->setSubject('Contacto | ' . $full_name);
Example #4
0
        <!--table lay out div-->
        <div class="container">

            <div style="margin-top:20px;">
                <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                    <h2 class="" style="font-size:26px; line-height:30px;">Add User</h2>
                    <div class="clearfix"></div>
                    <?php 
echo $Form->error('error', 'alert alert-danger alert-dismissible');
?>
                    <div id="reg">

                        <form action="action_add_user.php" method="post">
                            <input name="first_name" class="form-control inputone" type="text" placeholder="FIRSTNAME" value="<?php 
echo $Form->value('first_name');
?>
">
                            <input name="last_name" class="form-control" type="text" placeholder="LASTNAME" value="<?php 
echo $Form->value('last_name');
?>
">
                            <input name="email" class="form-control" type="text" placeholder="Email" value="<?php 
echo $Form->value('email');
?>
">
                            <input name="password" class="form-control" type="text" placeholder="PASSWORD" value="<?php 
echo $Form->value('password');
?>
">
                            <input name="phone" class="form-control" type="text" placeholder="PHONE NUMBER" value="<?php 
function input_value($model, $field)
{
    $val = Form::value($model, $field);
    return empty($val) ? ' value=""' : ' value="' . $val . '"';
}
Example #6
0
                    <div id="regg">

                        <?php 
echo $Form->error('error', 'alert alert-danger alert-dismissible');
?>
                        <?php 
echo $Form->error('success', 'alert-success alert-dismissible');
?>
                        <?php 
echo $Form->error('extension', 'alert alert-danger alert-dismissible');
?>
                        <form action="action_add_banner.php" method="post" enctype="multipart/form-data">
                            <input name="file" type="file" style="position: inherit;float: left;padding: 5px;background: #1c8c7e;color: #ffffff"/>
                            <input name="description" value="<?php 
echo $Form->value('description');
?>
" type="text" placeholder="DESCRIPTION" style="position: inherit;float: left"/>
                            <input name="submit" type="submit" value="ADD" class="form-control btnnn" style="position: inherit;float: left"/>
                        </form>

                        <div class="clearfix"></div>

                    </div>
                </div>
            </div>


        </div>

        <!--table lay out div end-->
Example #7
0
        <!--table lay out div-->
        <div class="container">

            <div style="margin-top:20px;">
                <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                    <h2 class="" style="font-size:26px; line-height:30px;">Edit Agency</h2>
                    <div class="clearfix"></div>
                    <?php 
echo $Form->error('error', 'alert alert-danger alert-dismissible');
?>
                    <div id="reg">

                        <form action="action_edit_agency.php" method="post">
                            <input name="agency_name" class="form-control inputone" type="text" placeholder="Agency Name" 
                                   value="<?php 
echo $Form->value('agency_name', $agency_data['agency_name']);
?>
"/>
                            <input name="primary_contact" class="form-control" type="text" placeholder="Primary Contact" 
                                   value="<?php 
echo $Form->value('primary_contact', $agency_data['primary_contact']);
?>
"/>
                            <input name="email" class="form-control" type="text" placeholder="Email" value="<?php 
echo $Form->value('email', $agency_data['email']);
?>
"/>
                            <input name="phone_no" class="form-control" type="text" placeholder="PHONE NUMBER" 
                                   value="<?php 
echo $Form->value('phone_no', $agency_data['phone_no']);
?>
$form = new Form(array('first_name' => array('label' => 'Nombre/s', 'type' => 'string', 'required' => true, 'maxlength' => $MAX_LENGTH_FIRST_NAME), 'last_name' => array('label' => 'Apellido/s', 'type' => 'string', 'required' => true, 'maxlength' => $MAX_LENGTH_LAST_NAME), 'email' => array('label' => 'Correo electrónico', 'type' => 'email', 'required' => true), 'province' => array('label' => 'Provincia', 'type' => 'string', 'required' => true, 'maxlength' => $MAX_LENGTH_PROVINCE), 'city' => array('label' => 'Ciudad', 'type' => 'string', 'required' => true, 'maxlength' => $MAX_LENGTH_CITY), 'address' => array('label' => 'Dirección', 'type' => 'string', 'required' => true, 'maxlength' => $MAX_LENGTH_ADDRESS), 'zip_code' => array('label' => 'Código postal', 'type' => 'number', 'required' => true, 'minvalue' => $MIN_ZIP_CODE, 'maxvalue' => $MAX_ZIP_CODE), 'gift_magazine' => array('label' => 'Revista de regalo', 'type' => 'number', 'required' => false, 'select' => $GIFT_MAGAZINES), 'notes' => array('label' => 'Notas', 'type' => 'string', 'required' => false, 'maxlength' => $MAX_LENGTH_NOTES)));
$errors = $form->validate_whitelist();
if (!empty($errors)) {
    Response::json(400, $errors);
}
$errors = $form->validate_required();
if (!empty($errors)) {
    Response::json(400, $errors);
}
$form->fill_values();
$errors = $form->validate_format();
if (!empty($errors)) {
    Response::json(400, $errors);
}
// Get form values
$first_name = $form->value('first_name');
$last_name = $form->value('last_name');
$email = $form->value('email');
$province = $form->value('province');
$city = $form->value('city');
$address = $form->value('address');
$zip_code = $form->value('zip_code');
$gift_magazine = $form->value('gift_magazine');
$notes = $form->value('notes');
// Message template
$message_body = file_get_contents('../templates/_email_subscription.html');
$message_body = str_replace(array('{{ first_name }}', '{{ last_name }}', '{{ email }}', '{{ province }}', '{{ city }}', '{{ address }}', '{{ zip_code }}', '{{ gift_magazine }}', '{{ notes }}'), array($first_name, $last_name, $email, $province, $city, $address, $zip_code, $gift_magazine, $notes), $message_body);
// Mail build
$mailer = new SendGrid(Config::$SENDGRID_USERNAME, Config::$SENDGRID_PASSWORD, Config::$SENDGRID_OPTIONS);
$message = new SendGrid\Email();
$message->addTo(Config::$SUBCRIPTION_FORM_TO);
Example #9
0
        <div class="header-bg blue">
            <div class="container">
                <div class="row">
                    <div class="col-lg-5 col-md-5 col-sm-5 col-xs-12 centeralign">
                        <a href="#">
                            <img src="img/logo.png" alt="Life Department" />
                        </a>
                    </div>
                    <div class="col-lg-7 col-md-7 col-sm-7 col-xs-12">

                        <form action="action_login.php" method="post">

                        <ul class="headlogin text-center">
                            <li>
                                <input type="email" name="email" value="<?php 
echo $Form->value('email');
?>
" placeholder="email" class="emailtext" />
                            </li>
                            <li>
                                <input type="password" name="password" value="" placeholder="password" class="passtext" />
                            </li>
                            <li>
                                <input type="submit" value="Login" name="submit" class="loginbtn" /></li>
                            </li>
                            <br>
                            <li style="width: 170px;font-size: 12px">
                                <input type="checkbox" name="remember_me" value="1" class="cbox"/>Keep me logged in
                            </li>
                            <li style="width: 150px">
                            <a href="forgot_password.php" class="keep">forgot your password?</a>
        <div class="container">

            <div style="margin-top:20px;">
                <?php 
echo $Form->error('error', 'alert alert-danger alert-dismissible');
?>
                <?php 
echo $Form->error('success', 'alert alert-success alert-dismissible');
?>
                <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                    <h2 class="" style="font-size:26px; line-height:30px;">Add Administrator</h2>
                    <div class="clearfix"></div>
                    <div id="reg">
                        <form action="action_edit_administrator.php" method="POST">
                            <input name="first_name" value="<?php 
echo $Form->value('first_name', $admin_data['first_name']);
?>
" class="form-control inputone" type="text" 
                                   placeholder="FIRSTNAME"/>
                            <input name="last_name" value="<?php 
echo $Form->value('last_name', $admin_data['last_name']);
?>
" class="form-control" type="text" placeholder="LASTNAME"/>
                            <input name="email" value="<?php 
echo $Form->value('email', $admin_data['email']);
?>
" class="form-control" type="text" placeholder="Email"/>
                            <input name="password" value="<?php 
echo $Form->value('password', $admin_data['password']);
?>
" class="form-control" type="text" placeholder="PASSWORD"/>
                
                <?php 
echo $Form->error('error', 'alert alert-danger alert-dismissible');
?>
                <?php 
echo $Form->error('success', 'alert alert-success alert-dismissible');
?>
                
                
                <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                    <h2 class="" style="font-size:26px; line-height:30px;">Add Administrator</h2>
                    <div class="clearfix"></div>
                    <div id="reg">
                        <form action="action_add_administrator.php" method="POST">
                            <input name="first_name" value="<?php 
echo $Form->value('first_name');
?>
" class="form-control inputone" type="text" placeholder="FIRSTNAME"/>
                            <input name="last_name" value="<?php 
echo $Form->value('last_name');
?>
" class="form-control" type="text" placeholder="LASTNAME"/>
                            <input name="email" value="<?php 
echo $Form->value('email');
?>
" class="form-control" type="text" placeholder="Email"/>
                            <input name="password" value="<?php 
echo $Form->value('password');
?>
" class="form-control" type="text" placeholder="PASSWORD"/>
                            <input name="phone" value="<?php 
Example #12
0
        <!--table lay out div-->
        <div class="container">

            <div style="margin-top:20px;">
                <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                    <h2 class="" style="font-size:26px; line-height:30px;">Edit User</h2>
                    <div class="clearfix"></div>
                    <?php 
echo $Form->error('error', 'alert alert-danger alert-dismissible');
?>
                    <div id="reg">

                        <form action="action_edit_user.php" method="post">
                            <input name="first_name" class="form-control inputone" type="text" placeholder="FIRSTNAME" value="<?php 
echo $Form->value('first_name', $user_data['first_name']);
?>
"/>
                            <input name="last_name" class="form-control" type="text" placeholder="LASTNAME" value="<?php 
echo $Form->value('last_name', $user_data['last_name']);
?>
"/>
                            <input name="email" class="form-control" type="text" placeholder="Email" value="<?php 
echo $Form->value('email', $user_data['email']);
?>
"/>
                            <input name="password" class="form-control" type="text" placeholder="PASSWORD" value="<?php 
echo $Form->value('password', $user_data['password']);
?>
"/>
                            <input name="phone" class="form-control" type="text" placeholder="PHONE NUMBER" value="<?php