コード例 #1
0
ファイル: profile.php プロジェクト: rogerapras/php_timeclock
function draw_page() {
	global $userinfo;
?>
<div class="container">
	<?php open_panel('edituser','User Information', false); ?>
	<div class="form-group col-md-6">
	<?php draw_edit_form($userinfo); ?>
	</div>
	<?php close_panel(); ?>
</div>
<?php 
}
コード例 #2
0
function draw_page() 
{	
?>
	<div class="container">
		<?php open_panel("messagebox","Messaging",false); ?>
			<?php open_panel_item("Messaging","mssg","7")?>
					<?php draw_message_box(); ?>
			<?php close_panel_item()?>
			<?php draw_message_input(); ?>
		<?php close_panel(); ?>
	</div>
<?
 } 
コード例 #3
0
function draw_page() 
{	
?>
	<div class="container">
	<?php open_panel("qual_table","List of Quals", false); ?>
	<?php draw_quals_table(); ?>
	<?php close_panel(); ?>

	<?php open_panel("qual_input","Add a New Qual", false); ?>
	<?php draw_quals_input_form(); ?>
	<?php close_panel(); ?>
	</div>
<?
 }
コード例 #4
0
ファイル: points.php プロジェクト: rogerapras/php_timeclock
function draw_page()
{
    ?>
	<div class="container">
	<?php 
    open_panel('teamlist', 'Race For Excellence', false);
    draw_team_panel();
    close_panel();
    open_panel('userlist', 'Points', false);
    draw_user_list();
    close_panel();
    ?>
	</div>
	<?php 
}
コード例 #5
0
function draw_page() 
{	

?>
	<div class="container">

		<?php 
		open_panel('payperiod-info','Payperiod Information', false);
		draw_first_payperiod_form();
		draw_payperiod_length_form();
		close_panel();
		?>
	</div>
	
<?php }
コード例 #6
0
function draw_page()
{
    ?>
	<div class="container">
		<?php 
    open_panel('userlist', 'Users');
    ?>
			<?php 
    draw_userlist();
    ?>
		<?php 
    close_panel();
    ?>
	</div>
<?
 } 
コード例 #7
0
ファイル: quals.php プロジェクト: rogerapras/php_timeclock
function draw_page()
{
    ?>
	<div class="container">
		<?php 
    open_panel('quals', 'Quals');
    draw_user_list();
    close_panel();
    ?>
	</div>
<?
 } 

function draw_user_list() {
  $users = get_users("user");
  $total = get_qual_point_total();

  ?>
      <table class="userlist table table-condensed">
        <tr>
          <th>Last Name</th>
          <th>First Name</th>
          <th>Username</th>
          <th>Progress</th>
        </tr>
        <?php 
    while ($row = $users->fetch_array()) {
        $row['role'] = get_role($row['user_id']);
        $progress = get_progress($row['user_id']);
        echo '<tr class="userlist ';
        echo 'userlist-' . $row['role'];
        if ($row['inactive']) {
            echo ' userlist-inactive';
        }
        echo '" onclick="openProgress(' . $row['user_id'] . ')">';
        echo '<td>' . $row['lname'] . "</td>";
        echo '<td>' . $row['fname'] . "</td>";
        echo '<td>' . $row['username'] . "</td>";
        echo '<td>';
        draw_qual_progress_bar($progress, $total);
        echo '</td>';
        echo '</tr>';
    }
    ?>
      </table>
  <?php 
}
コード例 #8
0
ファイル: qmse.php プロジェクト: rogerapras/php_timeclock
function draw_page() 
{	
	global $calendar
	?>
	<div class="container">
	<?php
	open_panel('calendar','Calendar');
	draw_calendar($calendar);
	close_panel();
	
	open_panel('addappt','Add Appointment');
	draw_add_appt_form();
	close_panel();
?>
	</div>
	<?php
 } 
コード例 #9
0
ファイル: goals.php プロジェクト: rogerapras/php_timeclock
function page_logic()
{
    ?>
<!-- PAGE CONTAINER -->
<div class="container">
    <?php 
    open_panel("dash2_toggle", "Goals");
    ?>
      <?php 
    open_panel_item("Goals", "goals", "6");
    ?>
        <div id="draw_goals_style">
          <?php 
    draw_goals();
    ?>
        </div>
        <?php 
    draw_goal_form();
    ?>
      <?php 
    close_panel_item();
    ?>
      <?php 
    open_panel_item("Progress", "goals", "6");
    ?>
        <div id="draw_progress_style">
          <?php 
    draw_progress();
    ?>
        </div>
      <?php 
    close_panel_item();
    ?>
    <?php 
    close_panel();
    ?>

</div>

    
    
<?php 
}
コード例 #10
0
ファイル: addhours.php プロジェクト: rogerapras/php_timeclock
function draw_page()
{
    ?>
	<div class="container">
		<?php 
    open_panel('userlist', 'User List');
    draw_userlist();
    close_panel();
    open_panel('addhours', 'Add Hours');
    ?>
			<div class="col-md-6">
			<?php 
    draw_add_hours_form();
    ?>
			</div>
			<?php 
    close_panel();
    ?>
	</div>
<?
 }
コード例 #11
0
function draw_page()
{
    ?>

<div class="container">

  <?php 
    open_panel("userlist", "User List", false);
    ?>

  <div class="row">
    <div class="col-md-10">
      <?php 
    draw_user_list();
    ?>
    </div>
    <div class="col-md-2 side_box">
      <button class="btn btn-default btn-sm col-md-12" onClick="toggleinactive()">Show Inactives</button>
      <button class="btn btn-default btn-sm col-md-6" data-toggle="modal" data-target="#adduser">Add User</button>
      <button class="btn btn-default btn-sm col-md-6" data-toggle="modal" data-target="#bulkadd">Bulk Add</button>
    </div>
    <div class="col-md-2 side_box">
      <button class="btn btn-default btn-sm col-md-12" onClick="toggleinactive()">Show Inactives</button>
      <button class="btn btn-default btn-sm col-md-6" data-toggle="modal" data-target="#adduser">Add User</button>
      <button class="btn btn-default btn-sm col-md-6" data-toggle="modal" data-target="#bulkadd">Bulk Add</button>
      
    </div>
  </div>
  <?php 
    close_panel();
    ?>


</div>
<?php 
    draw_adduser_form();
    draw_bulkadd_form();
}
コード例 #12
0
ファイル: testpage.php プロジェクト: rogerapras/php_timeclock
function page_logic()
{
    ?>

<div class="container">
    <!-- insert dummy data -->

    <?php 
    /*
    $userinfo = array();
    
        for ($i=0;$i<20;$i++){
            $userinfo['username'] = '******'.$i;
            $userinfo['fname'] = 'fname'.$i;
            $userinfo['lname'] = 'lname'.$i;
            $userinfo['emplid'] = '0000000'.$i;
            $userinfo['barcode'] = '000000000000'.$i;
            $userinfo['email'] = 'email'.$i;
            $userinfo['phone'] = 'phone'.$i;
            $userinfo['address'] = 'address'.$i;
            $userinfo['password'] = '******'.$i;
            $userinfo['pwconfirm'] = 'password'.$i;
            adduser($userinfo);
            echo "added test user ".$i;
        }
    */
    open_panel('test-target', 'test_panel');
    open_panel_item('title', 'color', 'col');
    ?>
<p>test html</p>
<div>timestamp()</div>
<?php 
    close_panel();
    ?>

</div>
<?php 
}
コード例 #13
0
function page_logic() {
?>
<div class="container">
  <?php open_panel("dash2_toggle","Clock"); ?>
    <div class="clock">
      <div id="clock">
      </div>
    </div>
  <?php close_panel(); ?>
<!-- If the user is logged in, display their timecard -->
<?php
if (isset($_SESSION['user_id'])) {
  ?>
  <?php open_panel("dash3_toggle","Time Card"); ?>
    <?php draw_timecard(); ?>
  <?php close_panel(); ?>  
<?php
}
?>
</div>
<?
 }
コード例 #14
0
function draw_page() 
{	
?>
	<div class="container">

		<?php open_panel("teamlist", "Teams", false) ?>
		<div class="row">
		<!-- LIST OF TEAMS AND MEMBERS -->
		<?php
		/* 
		Walkthrough of the code:
		-Ask mysql for a list of all team leaders (anybody who is an app_supervisor).
		-Step through each tl
		-Draw a new table for each tl
		-Ask mysql for a list of all team members of that particular team leader
		-Step through each team member and draw a <td> for each one
		*/
		$team_leaders = get_team_leaders();
		?>
				<?php
				while ($tl = $team_leaders->fetch_array()) {
					$team_members = get_team_members($tl['user_id']);
					?>
					<div class="col-md-3">
					<table class="table table-condensed" id="teams_table">
					<tr>
						<th><?php echo $tl['lname'].', '.$tl['fname']; ?></th>
						<th></th>
					</tr>
					<?php
					while ($tm = $team_members->fetch_array()) {
						?>
						<tr>
							<td>&nbsp;&nbsp;<?php echo $tm['lname'].', '.$tm['fname']; ?></td>
							<td><?php draw_remove_from_team_form($tm['user_id']); ?></td>
						</tr>
						<?
					}
					?>
					</table>
					</div>
					<?php
				}
				?>
		<div class="col-md-12">
		<?php
		$orphans = get_orphans();
		echo '<table class="table table-condensed" id="orphans_table">';
		while ($orphan = $orphans->fetch_array()) {
					echo '<tr><td>'.$orphan['lname'].','.$orphan['fname'].'</td></tr>';
				}
		echo '</table>';
		?>
		</div>

		</div>
		<?php close_panel(); ?>
		<!-- END LIST OF TEAMS AND MEMBERS -->

		<?php open_panel("add-to-team-form", "Add to Team", false) ?>

		<?php draw_add_to_team_form(); ?>
		
		<div class="col-md-6">
		
	</div>
	<?php close_panel() ?>
	</div>
	<?php
}