Exemplo n.º 1
0
        echo Form::close();
        echo " ";
    }
    // If topic is not allowed show message and hide everything related to that post
} else {
    echo " <strong><font color='red'>This Topic Has Been Disabled By Mod/Admin.  Contact Mod/Admin for more information.</font></strong> ";
}
// Display Admin Hide/UnHide Button
// Check if Admin
if ($data['is_admin'] == true || $data['is_mod'] == true) {
    echo "<hr>";
    echo Form::open(array('method' => 'post'));
    if ($data['topic_allow'] == "FALSE") {
        // UnHide Button
        echo "<input type='hidden' name='action' value='unhide_topic' />";
        echo "<button name='submit' type='submit' class='btn btn-xs btn-warning'>UnHide Topic</button>";
    } else {
        // Hide Button
        echo "<input type='hidden' name='action' value='hide_topic' />";
        echo Form::input(array('type' => 'text', 'name' => 'hide_reason', 'class' => 'form-control', 'placeholder' => 'Reason For Hiding This Topic', 'maxlength' => '255'));
        echo "<button name='submit' type='submit' class='btn btn-xs btn-danger' style='margin-top: 2px'>Hide Topic</button>";
    }
    // CSRF Token
    echo "<input type='hidden' name='csrf_token' value='" . $data['csrf_token'] . "' />";
    echo Form::close();
}
?>
		</div>
	</div>
</div>
        <!-- Forum Topic Reply Limit Per Page -->
        <div class='input-group'>
          <span class='input-group-addon'><i class='glyphicon glyphicon'></i> Topic Replies Per Page</span>
          <?php 
echo Form::input(array('type' => 'text', 'name' => 'forum_topic_reply_limit', 'class' => 'form-control', 'value' => $data['forum_topic_reply_limit'], 'placeholder' => 'Topic Replies Per Page Limit', 'maxlength' => '100'));
?>
        </div>
        <div style='margin-bottom: 25px'>
          <i>Default: 10</i> - Set the Forum Topic Replies Limit Per Page.
        </div>
        <?php 
echo Form::input(array('type' => 'hidden', 'name' => 'csrf_token', 'value' => $data['csrf_token']));
?>
        <?php 
echo Form::input(array('type' => 'hidden', 'name' => 'update_global_settings', 'value' => 'true'));
?>
        <button class='btn btn-sm btn-success' name='submit' type='submit'>Update Forum Settings</button>
        <?php 
echo Form::close();
?>
      <!-- End Main forum Settings -->

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

<!-- Start of Forum Users groups -->
<div class='col-lg-4 col-md-4'>
	<div class='panel panel-primary'>
		<div class='panel-heading'>
Exemplo n.º 3
0
 echo Form::open(array("method" => "post", "id" => "login_form", "action" => "login"));
 ?>
                                         <label for="email">Email</label>
                                         <?php 
 echo Form::input(array("name" => "login_email", "id" => "email", "placeholder" => "Email"));
 ?>
                                         <label for="password">Password</label>
                                         <?php 
 echo Form::input(array("name" => "login_password", "id" => "password", "placeholder" => "Password", "type" => "password"));
 ?>
                                         <?php 
 echo Form::input(array("name" => "login_button", "id" => "login_button", "value" => "Login", "type" => "submit"));
 ?>
                                         <label id="checkbox_label" for="remember_checkbox">Remember me</label>
                                         <?php 
 echo Form::input(array("name" => "remember_me", "id" => "remember_checkbox", "type" => "checkbox"));
 ?>
                                     <?php 
 echo Form::close();
 ?>
                                 </div>
                                 <div id="extra_login_options">
                                     <a href="/register">Don't have an account? Sign up!</a>
                                     <a href="/reset_password">Forgot your password?</a>
                                 </div>
                             </div>
                         </li>
                         <li>
                             <a href="/register" id="header_signup">Sign up</a>
                         </li>
                         
Exemplo n.º 4
0
							</div>

							<!-- Password 2 -->
							<div class='input-group' style='width: 80%; margin-bottom: 25px'>
								<span class='input-group-addon'><i class='glyphicon glyphicon-lock'></i></span>
								<?php 
echo Form::input(array('id' => 'confirmPasswordInput', 'type' => 'password', 'name' => 'passwordc', 'class' => 'form-control', 'placeholder' => 'Confirm Password'));
?>
								<span id='password02' class='input-group-addon'></span>
							</div>

							<!-- Email -->
							<div class='input-group' style='width: 80%; margin-bottom: 25px'>
								<span class='input-group-addon'><i class='glyphicon glyphicon-envelope'></i></span>
								<?php 
echo Form::input(array('id' => 'email', 'type' => 'text', 'name' => 'email', 'class' => 'form-control', 'placeholder' => 'E-Mail'));
?>
								<span id='resultemail' class='input-group-addon'></span>
							</div>

							<!-- reCAPTCHA -->
							<?php 
if (RECAP_PUBLIC_KEY && RECAP_PRIVATE_KEY) {
    ?>
							<script type='text/javascript'>var RecaptchaOptions = {theme : 'clean'};</script>
							<div class="g-recaptcha" data-sitekey="<?php 
    echo RECAP_PUBLIC_KEY;
    ?>
"></div>
							<script type="text/javascript" src="https://www.google.com/recaptcha/api.js?hl=en">
							</script>
Exemplo n.º 5
0
		</div>
  </div>
</div>

<!-- Create New Group Form -->
<div class='col-lg-12 col-md-12'>
<?php 
echo Form::open(array('method' => 'post'));
?>
  <div class='panel panel-info'>
    <div class='panel-heading'>
      <i class='glyphicon glyphicon-tower'></i> Group Name
    </div>
    <div class='panel-body'>
      <?php 
echo Form::input(array('type' => 'text', 'name' => 'ag_groupName', 'class' => 'form-control', 'placeholder' => 'New Group Name', 'maxlength' => '150'));
?>
    </div>
    <div class='panel-footer'>
      <input type='hidden' name='csrf_token' value='<?php 
echo $data['csrf_token'];
?>
'>
      <input type='hidden' name='create_group' value='true' />
      <button name='submit' type='submit' class="btn btn-success">Create New Group</button>
    </div>
  </div>
<?php 
echo Form::close();
?>
</div>
Exemplo n.º 6
0
				  </select>
				</div>

				<!-- Website -->
				<div class='input-group' style='margin-bottom: 25px'>
					<span class='input-group-addon'><i class='glyphicon glyphicon-globe'></i> Website</span>
					<?php 
echo Form::input(array('type' => 'text', 'name' => 'au_website', 'class' => 'form-control', 'value' => $data['u_website'], 'placeholder' => 'Website URL', 'maxlength' => '100'));
?>
				</div>

				<!-- Profile Image -->
				<div class='input-group' style='margin-bottom: 25px'>
					<span class='input-group-addon'><i class='glyphicon glyphicon-picture'></i> Profile Image URL</span>
					<?php 
echo Form::input(array('type' => 'text', 'name' => 'au_userImage', 'class' => 'form-control', 'value' => $data['u_userImage'], 'placeholder' => 'Profile Image URL', 'maxlength' => '255'));
?>
				</div>

				<!-- About Me -->
				<div class='input-group' style='margin-bottom: 25px'>
					<span class='input-group-addon'><i class='glyphicon glyphicon-book'></i> About Me</span>
					<?php 
echo Form::textBox(array('type' => 'text', 'name' => 'au_aboutme', 'class' => 'form-control', 'value' => $data['u_aboutme'], 'placeholder' => 'About Me', 'rows' => '6'));
?>
				</div>

				<!-- CSRF Token -->
				<input type="hidden" name="csrf_token" value="<?php 
echo $data['csrf_token'];
?>
Exemplo n.º 7
0
                <button type="button" onclick="document.getElementById('captchaImage').src= 
                '<?php 
echo $rainCaptcha->getImage();
?>
&morerandom=' + Math.floor(Math.random() * 10000);">New captcha</button>
                <?php 
if (isset($error["captcha"])) {
    ?>
                    <div class="error">
                         <?php 
    echo $error["captcha"];
    ?>
                    </div>
                <?php 
}
?>
            </div>
            <div class="p">
                <?php 
echo Form::input(array("name" => "register_button", "value" => "Register", "type" => "submit"));
?>
            </div>
        <?php 
echo Form::close();
?>
        <span id="success_message"><?php 
echo Session::pull("message");
?>
</span>
    </div>
</div>
Exemplo n.º 8
0
            <div class='input-group' style='margin-bottom: 25px'>
              <span class='input-group-addon'><i class='glyphicon glyphicon-pencil'></i> </span>
              <?php 
echo Form::textBox(array('type' => 'text', 'name' => 'forum_content', 'class' => 'form-control', 'value' => $data['forum_content'], 'placeholder' => 'Topic Content', 'rows' => '6'));
?>
            </div>

            <?php 
// Check to see if user is a new user.  If so then disable image uploads
if ($data['is_new_user'] != true) {
    ?>
                <!-- Image Upload -->
                <div class='input-group' style='margin-bottom: 25px'>
                  <span class='input-group-addon'><i class='glyphicon glyphicon-picture'></i> </span>
                  <?php 
    echo Form::input(array('type' => 'file', 'name' => 'forumImage', 'id' => 'forumImage', 'class' => 'form-control', 'accept' => 'image/jpeg,image/png,image/gif'));
    ?>
                </div>
            <?php 
}
?>

              <!-- CSRF Token -->
              <input type="hidden" name="csrf_token" value="<?php 
echo $data['csrf_token'];
?>
" />
              <button class="btn btn-md btn-success" name="submit" type="submit">
                <?php 
// echo Language::show('update_profile', 'Auth');
?>
							</div>
							
							<!-- Password 1 -->
							<div class='input-group' style='width: 80%; margin-bottom: 25px'>
								<span class='input-group-addon'><i class='glyphicon glyphicon-lock'></i></span>
								<?php 
echo Form::input(array('id' => 'passwordInput', 'type' => 'password', 'name' => 'password', 'class' => 'form-control', 'placeholder' => 'Password'));
?>
								<span id='password01' class='input-group-addon'></span>
							</div>
							
							<!-- Password 2 -->
							<div class='input-group' style='width: 80%; margin-bottom: 25px'>
								<span class='input-group-addon'><i class='glyphicon glyphicon-lock'></i></span>
								<?php 
echo Form::input(array('id' => 'confirmPasswordInput', 'type' => 'password', 'name' => 'passwordc', 'class' => 'form-control', 'placeholder' => 'Confirm Password'));
?>
								<span id='password02' class='input-group-addon'></span>
							</div>

							<!-- Display Live Password Status -->
							<span class='label' id='passwordStrength'></span>
							
							<!-- CSRF Token -->
							<input type="hidden" name="csrf_token" value="<?php 
echo $data['csrf_token'];
?>
" />
							<button class="btn btn-md btn-success" name="submit" type="submit">
								<?php 
echo Language::show('change_password', 'Auth');
Exemplo n.º 10
0
						<?php 
echo Error::display($error);
?>
						<?php 
echo Form::open(array('method' => 'post'));
?>
							<div class='input-group' style='width: 80%; margin-bottom: 25px'>
								<span class='input-group-addon'><i class='glyphicon glyphicon-user'></i></span>
								<?php 
echo Form::input(array('name' => 'username', 'class' => 'form-control', 'placeholder' => 'UserName or Email'));
?>
							</div>
							<div class='input-group' style='width: 80%; margin-bottom: 25px'>
								<span class='input-group-addon'><i class='glyphicon glyphicon-lock'></i></span>
								<?php 
echo Form::input(array('type' => 'password', 'name' => 'password', 'class' => 'form-control', 'placeholder' => 'Password'));
?>
							</div>
							<div class='input-group text-center' style='width: 80%; margin-bottom: 25px'>
								<label><input type="checkbox" name="rememberme" value="true"> Remember Me </label>
							</div>
							<!-- CSRF Token -->
							<input type="hidden" name="csrf_token" value="<?php 
echo $data['csrf_token'];
?>
" />
							<button class="btn btn-md btn-success" name="submit" type="submit">
								<?php 
echo Language::show('login', 'Auth');
?>
							</button>
Exemplo n.º 11
0
echo Form::open(array('method' => 'post'));
?>

							<!-- Current Password -->
							<div class='input-group' style='width: 80%; margin-bottom: 25px'>
								<span class='input-group-addon'><i class='glyphicon glyphicon-lock'></i></span>
								<?php 
echo Form::input(array('type' => 'password', 'name' => 'passwordemail', 'class' => 'form-control', 'placeholder' => 'Current Password'));
?>
							</div>

							<!-- Email -->
							<div class='input-group' style='width: 80%; margin-bottom: 25px'>
								<span class='input-group-addon'><i class='glyphicon glyphicon-envelope'></i></span>
								<?php 
echo Form::input(array('id' => 'email', 'type' => 'text', 'name' => 'newemail', 'class' => 'form-control', 'placeholder' => $data['email']));
?>
								<span id='resultemail' class='input-group-addon'></span>
							</div>

							<!-- Error Message Display -->
							<span id='resultemail2' class='label'></span>

							<!-- CSRF Token -->
							<input type="hidden" name="csrf_token" value="<?php 
echo $data['csrf_token'];
?>
" />
							<button class="btn btn-md btn-success" name="submit" type="submit">
								<?php 
echo Language::show('change_email', 'Auth');
Exemplo n.º 12
0
            <button type="button" class='btn btn-danger' onclick="document.getElementById('captchaImage').src= 
            '<?php 
echo $rainCaptcha->getImage();
?>
&morerandom=' + Math.floor(Math.random() * 10000);">New captcha</button>
            <?php 
if (isset($error["captcha"])) {
    ?>
                <div class="error">
                     <?php 
    echo $error["captcha"];
    ?>
                </div>
            <?php 
}
?>
        </div>
        <div class="p">
            <?php 
echo Form::input(array("name" => "contact_button", "value" => "Send", "type" => "submit"));
?>
        </div>
        <?php 
echo Form::close();
?>
        <span id="success_message"><?php 
echo Session::pull("message");
?>
</span>
    </div>
</div>
Exemplo n.º 13
0
            <h5 class="content-group"><?php 
echo Language::show('title_recovery', 'auth');
?>
 <small class="display-block"><?php 
echo Language::show('subtitle_recovery', 'auth');
?>
</small></h5>
        </div>
        
        <?php 
echo Error::display($error);
?>

        <div class="form-group has-feedback has-feedback-right">
            <?php 
echo Form::input(array('name' => 'email', 'value' => '' . $data[username] . '', 'placeholder' => '' . Language::show('your_email', 'auth') . '', 'class' => 'form-control'));
?>
            <div class="form-control-feedback">
                <i class="icon-mail5  text-muted"></i>
            </div>
        </div>

        <div class="form-group">
            <?php 
echo Form::button(array('type' => 'submit', 'name' => 'submit', 'class' => 'btn btn-primary btn-block', 'value' => '' . Language::show('reset_password', 'auth') . ' <i class="icon-circle-right2 position-right"></i>'));
?>
        </div>        

    </div>

<?php 
Exemplo n.º 14
0
        <div class="row">
            <div class="col-md-offset-4 col-md-4">
                <label for="seasonId">Season: </label>
                <?php 
echo \helpers\Form::select(array('name' => 'seasonId', 'id' => 'seasonId', 'class' => 'form-control', 'data' => $data['season_names']));
?>
            </div>
        </div>
    </div>

    <div id="hometownDiv" class="form-group">
        <div class="row">
            <div class="col-md-offset-4 col-md-4">
                <label for="hometown">Hometown: </label>
                <?php 
echo \helpers\Form::input(array('name' => 'hometown', 'id' => 'hometown', 'class' => 'form-control', 'placeholder' => 'City, State'));
?>
            </div>
        </div>
    </div>

    <div id="schoolYearDiv" class="form-group">
        <div class="row">
            <div class="col-md-offset-4 col-md-4">
                <label for="schoolYear">Year in School: </label>
                <select id="schoolYear" name="schoolYear" class="form-control">
                    <option value="">Select</option>
                    <option value="Freshman">Freshmen</option>
                    <option value="Sophomore">Sophomore</option>
                    <option value="Junior">Junior</option>
                    <option value="Senior">Senior</option>
                            echo "</div>";
                            echo "</div>";
                        }
                        // End of foreach
                    }
                    // End of isset
                    // Display form to create new Main Category
                    echo Form::open(array('method' => 'post', 'action' => DIR . 'AdminPanel-Forum-Categories/CatMainNew/1'));
                    echo "<div class='panel panel-info'>";
                    echo "<div class='panel-heading'>";
                    echo "<i class='glyphicon glyphicon-list'></i> New Main Category Title";
                    echo "</div>";
                    echo "<div class='panel-body'>";
                    echo Form::input(array('type' => 'hidden', 'name' => 'action', 'value' => 'new_cat_main_title'));
                    echo Form::input(array('type' => 'hidden', 'name' => 'csrf_token', 'value' => $data['csrf_token']));
                    echo Form::input(array('type' => 'text', 'name' => 'forum_title', 'class' => 'form-input text form-control', 'aria-describedby' => 'basic-addon1', 'placeholder' => 'New Main Category Title', 'maxlength' => '100'));
                    echo "</div>";
                    echo "<div class='panel-footer'>";
                    echo "<button class='btn btn-success' name='submit' type='submit'>Create New Main Category Title</button>";
                    echo "</div>";
                    echo "</div>";
                    echo Form::close();
                }
            }
        }
    }
}
// End of action check
?>

		</div>
Exemplo n.º 16
0
						<?php 
echo Success::display($success);
?>
						<?php 
echo Form::open(array('method' => 'post'));
?>
							<div class='input-group' style='width: 80%; margin-bottom: 25px'>
								<span class='input-group-addon'><i class='glyphicon glyphicon-lock'></i></span>
								<?php 
echo Form::input(array('type' => 'password', 'name' => 'password', 'class' => 'form-control', 'placeholder' => Language::show('input_password', 'Auth')));
?>
							</div>
							<div class='input-group' style='width: 80%; margin-bottom: 25px'>
								<span class='input-group-addon'><i class='glyphicon glyphicon-lock'></i></span>
								<?php 
echo Form::input(array('type' => 'password', 'name' => 'confirm_password', 'class' => 'form-control', 'placeholder' => Language::show('input_confirm_password', 'Auth')));
?>
							</div>
							<!-- CSRF Token -->
							<input type="hidden" name="csrf_token" value="<?php 
echo $data['csrf_token'];
?>
" />
							<button class="btn btn-md btn-success" name="submit" type="submit">
								<?php 
echo Language::show('change_password', 'Auth');
?>
							</button>
						<?php 
echo Form::close();
?>
Exemplo n.º 17
0
echo Form::open(array("method" => "post", "action" => "login"));
?>
            <div class="p">
                <?php 
echo Form::input(array("name" => "login_email", "placeholder" => "Email"));
?>
            </div>
            <div class="p">
                <?php 
echo Form::input(array("name" => "login_password", "placeholder" => "Password", "type" => "password"));
?>
            </div>
            <div class="p">
                <div id="checkbox_container">
                    <label id="checkbox_label" for="remember_checkbox">Remember me</label>
                    <?php 
echo Form::input(array("name" => "remember_me", "type" => "checkbox"));
?>
                </div>
            </div>
            <div class="p">
                <?php 
echo Form::input(array("name" => "login_button", "value" => "Login", "type" => "submit"));
?>
            </div>
        <?php 
echo Form::close();
?>
        <a href="/reset_password">Forgot your password?</a>
    </div>
</div>
Exemplo n.º 18
0
?>
			</div>

				<!-- Group Description -->
				<div class='input-group' style='margin-bottom: 25px'>
					<span class='input-group-addon'><i class='glyphicon glyphicon-book'></i> Group Description</span>
					<?php 
echo Form::input(array('type' => 'text', 'name' => 'ag_groupDescription', 'class' => 'form-control', 'value' => $data['g_groupDescription'], 'placeholder' => 'Group Description', 'maxlength' => '255'));
?>
				</div>

				<!-- Group Font Color -->
				<div class='input-group' style='margin-bottom: 25px'>
					<span class='input-group-addon'><i class='glyphicon glyphicon-lamp'></i> Group Font Color</span>
					<?php 
echo Form::input(array('type' => 'text', 'name' => 'ag_groupFontColor', 'class' => 'form-control', 'value' => $data['g_groupFontColor'], 'placeholder' => 'Font Color', 'maxlength' => '20'));
?>
				</div>

        <!-- Group Font Weight -->
				<div class='input-group' style='margin-bottom: 25px'>
					<span class='input-group-addon'><i class='glyphicon glyphicon-bold'></i> Group Font Weight</span>
          <select class='form-control' id='gender' name='ag_groupFontWeight'>
            <option value='Normal' <?php 
if ($data['g_groupFontWeight'] == "Normal") {
    echo "SELECTED";
}
?>
 >Normal</option>
            <option value='Bold' <?php 
if ($data['g_groupFontWeight'] == "Bold") {
use Core\Error;
use Helpers\Form;
?>
<div class="modal fade" id="login-modal" data-backdrop="static" data-keyboard="false" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">
    	  <div class="modal-dialog">
				<div class="loginmodal-container">
					<h1>Login to Your Account</h1><br>
<?php 
echo Error::displayError($error);
echo Error::displaySuccess($success);
?>

<?php 
echo Form::open(array('method' => 'post'));
?>

<?php 
echo Form::input(array('name' => 'username', 'placeholder' => 'Username'));
?>
</p>
<?php 
echo Form::input(array('type' => 'password', 'placeholder' => 'Password', 'name' => 'password'));
echo Form::input(array('type' => 'submit', 'class' => 'login loginmodal-submit', 'name' => 'submit', 'value' => 'Login'));
echo Form::close();
?>
<div class="login-help">
					<a href="#">Register</a> - <a href="#">Forgot Password</a>
				  </div>
				</div>
			</div>
		  </div>
Exemplo n.º 20
0
        <?php 
echo Error::display($error);
?>

        <div class="form-group has-feedback has-feedback-left">
            <?php 
echo Form::input(array('name' => 'username', 'value' => '' . $data[username] . '', 'placeholder' => '' . Language::show('username', 'auth') . '', 'class' => 'form-control'));
?>
            <div class="form-control-feedback">
                <i class="icon-user text-muted"></i>
            </div>
        </div>
        
        <div class="form-group has-feedback has-feedback-left">
            <?php 
echo Form::input(array('name' => 'password', 'placeholder' => '' . Language::show('password', 'auth') . '', 'class' => 'form-control'));
?>
            
            <div class="form-control-feedback">
                <i class="icon-lock2 text-muted"></i>
            </div>
        </div>

        <div class="form-group">
            <?php 
echo Form::button(array('type' => 'submit', 'name' => 'submit', 'class' => 'btn btn-primary btn-block', 'value' => '' . Language::show('signin', 'auth') . ' <i class="icon-circle-right2 position-right"></i>'));
?>
        </div>        

        <div class="text-center">
            <a href="/password-recovery"><?php 
Exemplo n.º 21
0
</div>
					</div>
					<div class='pannel-body' style='padding:10px' align='center'>
						<?php 
echo Error::display($error);
?>
						<?php 
echo Success::display($success);
?>
						<?php 
echo Form::open(array('method' => 'post'));
?>
							<div class='input-group' style='width: 80%; margin-bottom: 25px'>
								<span class='input-group-addon'><i class='glyphicon glyphicon-envelope'></i></span>
								<?php 
echo Form::input(array('type' => 'text', 'name' => 'email', 'class' => 'form-control', 'placeholder' => Language::show('input_email_address', 'Auth')));
?>
							</div>
							<!-- CSRF Token -->
							<input type="hidden" name="csrf_token" value="<?php 
echo $data['csrf_token'];
?>
" />
							<button class="btn btn-md btn-success" name="submit" type="submit">
								<?php 
echo Language::show('forgot_password', 'Auth');
?>
							</button>
						<?php 
echo Form::close();
?>
Exemplo n.º 22
0
    echo Form::open(array('method' => 'post'));
    ?>

      <!-- To UserName -->
      <div class='input-group' style='margin-bottom: 25px'>
        <span class='input-group-addon'><i class='glyphicon glyphicon-user'></i> </span>
        <?php 
    echo Form::input(array('type' => 'text', 'name' => 'to_username', 'class' => 'form-control', 'value' => $data['to_username'], 'placeholder' => 'To Username', 'maxlength' => '100'));
    ?>
      </div>

      <!-- Subject -->
      <div class='input-group' style='margin-bottom: 25px'>
        <span class='input-group-addon'><i class='glyphicon glyphicon-book'></i> </span>
        <?php 
    echo Form::input(array('type' => 'text', 'name' => 'subject', 'class' => 'form-control', 'value' => $data['subject'], 'placeholder' => 'Subject', 'maxlength' => '100'));
    ?>
      </div>

      <!-- Message Content -->
      <div class='input-group' style='margin-bottom: 25px'>
        <span class='input-group-addon'><i class='glyphicon glyphicon-pencil'></i> </span>
        <?php 
    echo Form::textBox(array('type' => 'text', 'name' => 'content', 'class' => 'form-control', 'value' => $data['content'], 'placeholder' => 'Message Content', 'rows' => '6'));
    ?>
      </div>

        <!-- CSRF Token -->
        <input type="hidden" name="csrf_token" value="<?php 
    echo $data['csrf_token'];
    ?>
Exemplo n.º 23
0
     if ($row->date_read == NULL) {
         // Unread
         echo "<span class='glyphicon glyphicon-star' aria-hidden='true' style='font-size:25px; color:#419641'></span>";
     } else {
         // Read
         echo "<span class='glyphicon glyphicon-star-empty' aria-hidden='true' style='font-size:25px; color:#CCC'></span>";
     }
     echo "</td>";
     echo "<td><a href='" . DIR . "ViewMessage/{$row->id}'><b>Subject:</b> {$row->subject}</a><br>";
     echo $data['tofrom'];
     echo " <a href='" . DIR . "Profile/{$row->username}'>{$row->username}</a>";
     echo " &raquo; ";
     echo date("F d, Y - g:i A", strtotime($row->date_sent));
     echo "</td>";
     echo "<td>";
     echo Form::input(array('type' => 'checkbox', 'name' => 'msg_id[]', 'class' => 'form-control', 'value' => $row->id));
     echo "</td>";
     echo "</tr>";
 }
 echo "<input type='hidden' name='csrf_token' value='" . $data['csrf_token'] . "' />";
 echo "</tr><td colspan='3'>";
 echo "<div class='col-lg-7 col-md-7 col-sm-7 pull-left' style='font-size:12px;margin-bottom:0px;'>";
 // Display Quta Info
 echo "<b>Total {$data['what_box']} Messages:</b> {$data['quota_msg_ttl']} - <b>Limit:</b> {$data['quota_msg_limit']}";
 // Check to see how full the inbox or outbox is and set color of progress bar
 if ($data['quota_msg_percentage'] >= '90') {
     $set_prog_style = "progress-bar-danger";
 } else {
     if ($data['quota_msg_percentage'] >= '80') {
         $set_prog_style = "progress-bar-warning";
     } else {