예제 #1
0
파일: expenses.php 프로젝트: TylerHann/cpr
     if (argsLen($args, 1)) {
         getPosition($args[0]);
     } else {
         incorrect();
     }
     break;
 case 'getFirstName':
     if (argsLen($args, 1)) {
         getFirstName($args[0]);
     } else {
         incorrect();
     }
     break;
 case 'getLastName':
     if (argsLen($args, 1)) {
         getLastName($args[0]);
     } else {
         incorrect();
     }
     break;
 case 'getCostCenter':
     if (argsLen($args, 1)) {
         getCostCenter($args[0]);
     } else {
         incorrect();
     }
     break;
 case 'getCrewRegional':
     if (argsLen($args, 1)) {
         getCrewRegional($args[0]);
     } else {
예제 #2
0
    <meta charset="UTF-8" />
    <title>Confirm Appointment</title>
	<link rel='stylesheet' type='text/css' href='css/standard.css'/>  </head>
  <body>
	<div id="login">
      <div id="form">
        <div class="top">
		<h1>Confirm Appointment</h1>
	    <div class="field">
		<form action = "StudProcessSch.php" method = "post" name = "SelectTime">
	    <?php 
$debug = false;
include 'GetStudentData.php';
$COMMON = new Common($debug);
$firstn = getFirstName();
$lastn = getLastName();
$studid = $_SESSION["studID"];
$major = getMajor();
$email = getEmail();
if ($_SESSION["resch"] == true) {
    $sql = "select * from Proj2Appointments where `EnrolledID` like '%{$studid}%'";
    $rs = $COMMON->executeQuery($sql, $_SERVER["SCRIPT_NAME"]);
    $row = mysql_fetch_row($rs);
    $oldAdvisorID = $row[2];
    $oldDatephp = strtotime($row[1]);
    if ($oldAdvisorID != 0) {
        $sql2 = "select * from Proj2Advisors where `id` = '{$oldAdvisorID}'";
        $rs2 = $COMMON->executeQuery($sql2, $_SERVER["SCRIPT_NAME"]);
        $row2 = mysql_fetch_row($rs2);
        $oldAdvisorName = $row2[1] . " " . $row2[2];
    } else {
예제 #3
0
    <div id="login">
      <div id="form">
			<div class="top">
			<h2>Edit Student Information<span class="login-create"></span></h2>
			<form action="StudProcessEdit.php" method="post" name="Edit">
			<div class="field">
				<label for="firstN">First Name</label>
				<input id="firstN" size="30" maxlength="50" type="text" name="firstN" required value=<?php 
echo getFirstName();
?>
>
			</div>
			<div class="field">
			  <label for="lastN">Last Name</label>
			  <input id="lastN" size="30" maxlength="50" type="text" name="lastN" required value=<?php 
echo getLastName();
?>
>
			</div>
			<div class="field">
				<label for="studID">Student ID</label>
				<input id="studID" size="30" maxlength="7" type="text" pattern="[A-Za-z]{2}[0-9]{5}" title="AB12345" name="studID" disabled value=<?php 
echo $_SESSION["studID"];
?>
>
			</div>
			<div class="field">
				<label for="email">E-mail</label>
				<input id="email" size="30" maxlength="255" type="email" name="email" required value=<?php 
echo getEmail();
?>
예제 #4
0
 /** Generates and returns an array consisting of all authors.
  * The returned array is a hash table with keys <FirstName LastName>
  * and values <LastName, FirstName>.
  */
 function authorIndex()
 {
     $result = array();
     foreach ($this->bibdb as $bib) {
         foreach ($bib->getRawAuthors() as $a) {
             //we use an array because several authors can have the same lastname
             @$result[getLastName($a)][$bib->formatAuthor($a)]++;
         }
     }
     ksort($result);
     // now authors are sorted by last name
     // we rebuild a new array for having good keys in author page
     $realresult = array();
     foreach ($result as $x) {
         ksort($x);
         foreach ($x as $v => $tmp) {
             $realresult[$v] = $v;
         }
     }
     return $realresult;
 }