Exemplo n.º 1
0
 function present($player)
 {
     $message = '';
     if (count($this->errors) > 0) {
         foreach ($this->errors as $booboo) {
             $message .= $booboo . BR;
         }
     }
     $this->data['message'] = $message;
     if ($player->id != null) {
         $this->data['pid'] = makeTextField('hidden', '', 'id', $player->id, "", 10, 10, false);
     } else {
         $this->data['pid'] = makeTextField('hidden', '', 'id', $player->id, "", 10, 10, true);
     }
     $this->data['pFirstName'] = makeTextField('text', 'First Name', 'playerFirstName', $player->playerFirstName);
     $this->data['pLastName'] = makeTextField('text', 'Last Name', 'playerLastName', $player->playerLastName);
     $this->data['pNumber'] = makeTextField('text', 'Jersey Number', 'playerNumber', $player->playerNumber);
     $this->data['pPosition'] = makeTextField('text', 'Position', 'playerPosition', $player->playerPosition);
     //$this->data['pPhoto'] = makeTextField('text', 'Player Mugshot File Name','playerPhoto', $player->playerPhoto);
     $this->data['pagebody'] = 'Roster/player_edit';
     if ($player->id != null) {
         $this->data['psubmit'] = makeSubmitButton('Save', "Click here to edit player.", 'submitButton', 'editAdd', 'btn-success', '_fields/submit');
         $this->data['pdelete'] = makeSubmitButton('Delete Player', "Click here to delete player.", 'submitButton', 'delete', 'btn-success', '_fields/submit');
         $this->data['pcancel'] = makeSubmitButton('Cancel', "Click here to cancel.", 'submitButton', 'cancel', 'btn-success', '_fields/submit');
     } else {
         $this->data['psubmit'] = makeSubmitButton('Add Player', "Click here to add player.", 'submitButton', 'editAdd', 'btn-success', '_fields/submit');
         $this->data['pcancel'] = makeSubmitButton('Cancel', "Click here to cancel.", 'submitButton', 'cancel', 'btn-success', '_fields/submit');
         $this->data['pdelete'] = makeSubmitButton('Delete Player', "Click here to delete player.", 'submitButton', 'delete', 'btn-success', '_fields/hiddenBtn');
     }
     $this->render();
 }
Exemplo n.º 2
0
 function makeCommentBox($comments, $commentToEdit = null, $userid = null, $admin = false)
 {
     $CI =& get_instance();
     if (!function_exists('makePHPButton')) {
         $CI->load->helper('button_helper.php');
     }
     $commentBox = '';
     foreach ($comments as $comment) {
         if (($userDat = $CI->users->get($comment->poster_id)) != null) {
             $comment->user = '******' . $userDat->username . '">' . $userDat->username . '</a>';
         } else {
             $comment->user = "******";
         }
         $comment->adminContent = "";
         if ($admin) {
             if ($commentToEdit == null || $commentToEdit != $comment->comment_id) {
                 $comment->adminContent .= makePHPButton("/Admin/editComment/" . $comment->post_id . '/' . $comment->comment_id, "Edit", "cId", $comment->comment_id, "button floatLeft");
             } else {
                 $comment->adminContent .= '<form action="/Admin/saveComment/' . $comment->post_id . '" method="post">';
                 $comment->adminContent .= makeTextField('Title', 'title', $comment->title);
                 $comment->adminContent .= makeTextArea('Comment', 'content', $comment->content, "", 1000, 25, 5, false);
                 $comment->adminContent .= makeSubmitButton("Save", "Save", "button");
                 $comment->adminContent .= '</form>';
                 $comment->title = "";
                 $comment->content = "";
             }
             $comment->adminContent .= makePHPButton("/Admin/deleteComment/" . $comment->post_id . '/' . $comment->comment_id, "Delete", "cId", $comment->comment_id, "button floatLeft");
         }
         $commentBox .= $CI->parser->parse('_j1_comment_box', $comment, true);
     }
     return $commentBox;
 }
Exemplo n.º 3
0
 function makeContentForm($handler, $titleVal = "", $contentVal = "", $classExtra = "", $contentLbl = "Content", $submitLbl = "Submit", $titleLbl = "Title", $explain = "")
 {
     $CI =& get_instance();
     $CI->load->helper("formfields");
     $array = array("handler" => $handler, "title" => makeTextField($titleLbl, 'title', $titleVal), "content" => makeTextArea($contentLbl, 'content', $contentVal, "", 1000, 25, 5, false), "fsubmit" => makeSubmitButton($submitLbl, $explain, $classExtra));
     return $CI->parser->parse('_pogfield/_content_form', $array, true);
 }
Exemplo n.º 4
0
 function present($player)
 {
     // format any errors
     $message = '';
     if (count($this->errors) > 0) {
         foreach ($this->errors as $invalid) {
             $message .= $invalid . ' . . . ';
         }
     }
     $this->data['message'] = $message;
     $this->data['fplayerid'] = makeTextField('Player ID', 'playerid', $player->PLAYERID, '', 10, 10);
     $this->data['ffirstname'] = makeTextField('First Name', 'firstname', $player->FIRSTNAME);
     $this->data['flastname'] = makeTextField('Last Name', 'lastname', $player->LASTNAME);
     $this->data['fteamcode'] = makeTextField('Team Code', 'teamcode', $player->TEAMCODE);
     $this->data['fplayernum'] = makeTextField('Jersey Number', 'playernum', $player->PLAYERNUM);
     $this->data['fposition'] = makeTextField('Position', 'position', $player->POSITION);
     $this->data['fimage'] = makeTextField('Photo File Name', 'image', $player->IMAGE);
     $this->data['finfo'] = makeTextArea('Player History', 'info', $player->INFO);
     $this->data['fsubmit'] = makeSubmitButton('Save', "Click here to validate the player data", 'btn-success');
     $this->data['fdelete'] = makeSubmitButton('Delete', "Click here to delete the player", 'btn-success');
     $this->data['fcancel'] = makeSubmitButton('Cancel', "Click here to cancel the change", "submitbutton", "cancel", 'btn-success');
     $this->data['pagebody'] = 'player_edit';
     $this->data['title'] = 'Player Profile Maintenance';
     $this->render();
 }
Exemplo n.º 5
0
 public function index()
 {
     $this->data['pagebody'] = 'createteam';
     $team = $this->teams->create();
     $this->data['team_name'] = makeTextField('Team Name', 'team_name', $team->name);
     $this->data['max_team_count'] = makeTextField('Max Number of Members', 'max_team_count', $team->max_team_count);
     $this->data['fsubmit'] = makeSubmitButton('Create Team', "Click here to validate the post data", 'btn-success');
     $this->render();
 }
Exemplo n.º 6
0
 public function setup_post_input_fields()
 {
     /* Restore previous session */
     $post = $this->restore_post_session($this->posts->create());
     $team = $this->restore_team_session($this->teams->create());
     $this->data['title'] = makeTextField('Title *', 'title', $post->title);
     $this->data['content'] = $this->data['content'] = makeTextArea('Content*', 'content', $post->content, "", 1000, 25, 5, false);
     $this->data['team_name'] = makeTextField('Team Name *', 'team_name', $team->team_name);
     $this->data['max_team_count'] = makeTextField('Max Team Members *', 'max_team_count', $team->max_team_count);
 }
Exemplo n.º 7
0
 function present($quote)
 {
     $message = '';
     if (count($this->errors) > 0) {
         foreach ($this->errors as $booboo) {
             $message .= $booboo . BR;
         }
     }
     $this->data['message'] = $message;
     $this->data['fid'] = makeTextField('ID#', 'id', $quote->id, "Unique quote identifier, system-assigned", 10, 10, true);
     $this->data['fwho'] = makeTextField('Author', 'who', $quote->who);
     $this->data['fmug'] = makeTextField('Picture', 'mug', $quote->mug);
     $this->data['fwhat'] = makeTextArea('The Quote', 'what', $quote->what);
     $this->data['pagebody'] = 'quote_edit';
     $this->data['fsubmit'] = makeSubmitButton('Process Quote', "Click here to validate the quotation data", 'btn-success');
     $this->render();
 }
Exemplo n.º 8
0
 public function index()
 {
     $this->data['pagebody'] = 'signin';
     $this->load->helper('ffields');
     $user = $this->users->create();
     $this->data['username'] = makeTextField('Username', 'username', $user->username);
     $this->data['password'] = makePasswordField('Password', 'password', $user->password);
     $this->data['submit'] = makeSubmitButton('Sign In', "Click here to validate the user data", 'button floatLeft');
     $this->data['signup'] = makeButton("/SignUp", "Sign Up", "button floatLeft");
     if (isset($_SESSION['login_error']) == 'wrongcredentials') {
         $this->data['message'] = 'Wrong Login Information';
     } else {
         $this->data['message'] = '';
     }
     //unset sign up error
     unset($_SESSION['signup_error']);
     $this->render();
 }
Exemplo n.º 9
0
 public function index()
 {
     $this->data['pagebody'] = 'signup';
     if (isset($_SESSION['signup_error'])) {
         $this->data['message'] = $_SESSION['signup_error'];
     } else {
         $this->data['message'] = '';
     }
     $user = $this->restore_signup_session();
     $this->data['username'] = makeTextField('Username', 'username', $user->username);
     $this->data['password'] = makePasswordField('Password', 'password', '');
     $this->data['password2'] = makePasswordField('Password', 'password2', '');
     $this->data['email'] = makeTextField('Email', 'email', $user->email);
     $this->data['submit'] = makeSubmitButton('Sign Up', "Click here to validate the user data", 'btn-success');
     //unset sign in error
     unset($_SESSION['login_error']);
     $this->render();
 }
Exemplo n.º 10
0
<?php

# This form allows to enter a date. After submitting, all Bank and Cash Account-balances get
# printed seperated by Projects.
session_start();
require "accrp.php";
require "security/secure.php";
beginDocument("list Cash and Bank", $sess_user);
if ($date) {
    $ac1 = get_ac_array(1);
    foreach ($ac1 as $key => $prj_desc) {
        $accounts = new BankAndCashAccounts_byProject($key, $date, "c");
        beginPrettyTable(4, "{$prj_desc}");
        printRow(array("Account", "Balance"));
        while ($row = $accounts->getNext()) {
            printRow(array($row["AC5_DESC"], $accounts->getActualBalance() . "&nbsp;"), "irgendwas");
        }
        printRow(array("Sum", $accounts->getSum()));
        endPrettyTable();
    }
} else {
    openForm("enter Date", $PHP_SELF);
    beginPrettyTable("2", "list bank and cash");
    makeTextField("date", get_today_hrd_string(), "Date:");
    makeSubmitter();
    endPrettyTable();
    closeForm();
}
endDocument();
Exemplo n.º 11
0
    makeHiddenField("vr_tp", $vr_tp);
    makePlainDropBox("ac_name", $ac_array, "Ac_Name");
    makePlainStaticField("t_dt", $today, "         ", 10);
    startRow();
    makePlainStaticField("dr_cr", $dr_cr, "DR./CR", 2);
    makePlainTextField("amount", "", "Amount:", 8);
    endRow();
    startRow();
    makePlainStaticField("vr_no", "", "Vr.No.:", 10);
    makePlainTextField("vr_dt", $today, "Vr.-Date:", 10);
    endRow();
    makePlainTextField("party", "", $dr_cr == "C" ? "Paid To" : "Rcvd. from");
    if ($vr_tp != "JV") {
        makePlainTextField("chq_no", "", "Chq-No.:", 10);
    }
    makeTextField("remarks", "", "Narration:");
    endPrettyTable();
    # Start now with that second part of the story
    if ($vr_tp == "DB") {
        $ac_array = get_ac5_sc_array("5(1/2)", "");
    } elseif ($vr_tp == "CR") {
        $ac_array = get_ac5_sc_array("5(1/2)", "");
    } elseif ($vr_tp == "JV") {
        $ac_array = get_ac5_sc_array("5(1/2)", "");
    } else {
        die("Unknown Voucher-type: ({$vr_tp})");
    }
    beginPrettyTable("1", "I call it \"Counterbooking\"");
    ?>
 <tr><td>AccountName</td><td>Narration</td><td>Dept</td><td>Amount</td></tr><?php 
    for ($i = 0; $i < $ac_count; $i++) {
Exemplo n.º 12
0
        }
        $amount = $_POST[$field_name];
        $vr_no = get_new_vrno();
        # insert voucher
        $query = $query_part1 . "('{$vr_no}','{$today}','CR','{$ac1}', '{$ac2}','{$ac3}','{$ac4}','{$ac5}','D','','{$amount}','','opening Balance','{$today}','')";
        $result = mysql_query($query, $db);
        checkMySQLError();
        # insert counterbooking
        $query = $query_part1 . "('{$vr_no}','{$today}','CR','0', '5','0','0','0','C','','{$amount}','','opening Balance','{$today}','')";
        $result = mysql_query($query, $db);
        checkMySQLError();
    }
    report(1, "Everything seems to be fine. Check via Bank and Cash Report!");
} else {
    $db = getDBConnection();
    $result = mysql_query("Select * FROM TRANS");
    if (mysql_num_rows($result) != 0) {
        report(0, "Sorry, opening balance can only be performed when you have no Vouchers entered");
    }
    $accounts_array = get_ac5_sc_array("5(1)", "B");
    beginPrettyTable("2", "enter opening balances");
    openForm("openingbalance", $PHP_SELF);
    makeHiddenField("submitnow", 0);
    foreach ($accounts_array as $ac5 => $desc) {
        makeTextField("account_field_" . $ac5, "", $desc);
    }
    makeSpecialSubmitter("submit", "onClick='this.form.submitnow.value=\"1\"'");
    closeForm();
    endPrettyTable();
}
endDocument();
Exemplo n.º 13
0
 public function search()
 {
     $this->data['pagebody'] = 'search';
     $this->data['username'] = makeTextField('Username', 'username', '');
     $searchusername = $this->input->post('username');
     $users = $this->users->some_like('username', $searchusername);
     $this->data['userlistview'] = $users;
     $this->data['searchlist'] = $this->parser->parse('_searchlist', $this->data, true);
     $this->data['resultslabel'] = 'Search Results:';
     $this->render();
     //redirect('/Admin/search');
 }
Exemplo n.º 14
0
    ?>
	   <tr>
	    <?php 
    echo "<td><a href='list_ac5.php'>show List</a></td>";
    ?>
	   </tr>
	   <tr>
	    <td><hr color='black'></td>
	   </tr>
	   <?php 
    endPrettyTable();
    ?>
	  </td>
	  <td valign=top align=center width='65%'>
	<?php 
    openForm("enterAC_CODE5", $PHP_SELF);
    beginPrettyTable("2", $lEnterCustomer);
    makeDropBox("ac_id1", $ac1_array, "AC_CODE1");
    makeDropBox("ac_id2", $ac2_array, "AC_CODE2");
    makeDropBox("ac_id3", $ac3_array, "AC_CODE3");
    makeDropBox("ac_id4", $ac4_array, "AC_CODE4");
    makeTextField("ac5_desc", "", "AC_CODE5");
    makeSubmitter();
    endPrettyTable();
    closeForm();
    ?>
	   </td>
	  </table>
	  <?php 
}
endDocument();
Exemplo n.º 15
0
 function displayPlayer($ID = null, $invalidEntry = false)
 {
     $this->session->set_userdata('editPage', '/player/displayPlayer/' . $ID);
     // If null, we are creating a new player
     if ($ID === null) {
         $playerTemp = $this->createPlayer();
         // If displayPlayer is being recalled from validation, it is therefore invalid.
     } else {
         if ($invalidEntry) {
             $playerTemp = $this->parsePlayerBuffer();
             // Retrieve player from database with ID
         } else {
             $playerTemp = $this->loadPlayerFromDb($ID);
         }
     }
     // determine if we're in edit mode
     if (isset($_SESSION['editMode'])) {
         $editMode = $this->session->userdata('editMode');
     } else {
         $editMode = FALSE;
     }
     $message = '';
     if (count($this->errors) > 0) {
         foreach ($this->errors as $booboo) {
             $message .= $booboo . "<BR>";
         }
     }
     $this->data['message'] = $message;
     // make text fields for each key value pair
     foreach ($playerTemp as $key => $val) {
         $this->data[$key] = makeTextField($key, $key, $val, "", 40, 15, !$editMode);
     }
     // override previous foreach loop: ID and Photo are not text fields
     $this->data['ID'] = $playerTemp->ID;
     $this->data['Photo'] = $playerTemp->Photo;
     // Get all Codes from standings table and populate dropdown list
     $this->db->select('Code');
     $query = $this->db->get('standings');
     foreach ($query->result() as $row) {
         $codes[] = $row->Code;
     }
     $this->session->set_userdata('codes', $codes);
     $this->data['Code'] = makeComboField('Code', "Code", 24, $codes, "", 40, 15, !$editMode);
     $this->data['Submit'] = "";
     $this->data['Cancel'] = "";
     $this->data['Delete'] = "";
     // if editMode is set and we're in edit mode, display CRUD controls
     if (isset($_SESSION['editMode']) && $this->session->userdata('editMode')) {
         $this->data['Submit'] = makeSubmitButton('Save', "Save", 'btn-success');
         $this->data['Cancel'] = makeCancelButton('Cancel', "Cancel", 'btn-primary');
         $this->data['Delete'] = makeDeleteButton('Delete', "Delete", 'btn-danger', $ID);
     }
     $this->data['pagebody'] = 'player';
     $this->render();
 }
Exemplo n.º 16
0
	  <td valign=top width='15%'>
	
           <?php 
    beginPrettyTable("1");
    ?>
	   <tr>
	    <?php 
    echo "<td><a href='list_desig.php'>show List</a></td>";
    ?>
	   </tr>
	   <tr>
	    <td><hr color='black'></td>
	   </tr>
	   <?php 
    endPrettyTable();
    ?>
	  </td>
	  <td valign=top align=center width='65%'>
	     <?php 
    openForm("enterDESIGNATION", $PHP_SELF);
    beginPrettyTable("2", "enter Designation");
    makeTextField("desig_desc", "", "Designation");
    makeSubmitter();
    endPrettyTable();
    closeForm();
    ?>
	</td>
	  </table>
	  <?php 
}
endDocument();
Exemplo n.º 17
0
 function present($edit = false)
 {
     $player = $this->session->userdata("currplayer");
     $message = '';
     if (count($this->errors) > 0) {
         foreach ($this->errors as $booboo) {
             $message .= $booboo . '<BR>';
         }
     }
     if ($edit) {
         $this->data['fedit'] = '<input type="hidden" name="edit" value="' . $player->number . '">';
         $this->data['fdelete'] = '<a class="btn btn-danger" href="/playercontrol/delete/' . $player->number . '">Delete</a>';
     } else {
         $this->data['fedit'] = '';
         $this->data['fdelete'] = '';
     }
     $this->data['message'] = $message;
     $this->data['fnumber'] = makeTextField('Number#', 'number', $player->number);
     $this->data['fname'] = makeTextField('Name', 'name', $player->name);
     $this->data['fposition'] = makeTextField('Position', 'position', $player->position);
     $this->data['fheight'] = makeTextField('Height', 'height', $player->height);
     $this->data['fweight'] = makeTextField('Weight', 'weight', $player->weight);
     $this->data['fage'] = makeTextField('Age', 'age', $player->age);
     $this->data['fexp'] = makeTextField('Exp', 'exp', $player->exp);
     $this->data['fmug'] = '<label class="btn btn-primary" for="mug">Select Mugshot' . '<input type="file" id="mug" name="mug" size="20" style="display:none;" /></label><br><br>';
     $this->data['pagebody'] = 'player_edit';
     $this->data['fsave'] = makeSubmitButton('Save', "Click here to validate the player data", 'btn-success');
     $this->data['fcancel'] = '<a class="btn btn-primary" href="/playerroster">Cancel</a>';
     $this->render();
 }
Exemplo n.º 18
0
        beginPrettyTable("2", "edit Salary");
        makeHiddenField("emp_id3", $emp_id3);
        makeHiddenField("submitnow", 0);
        makeStaticField("emp_name", $edit_personal["EMP_NAME"], "Employer Name");
        makeStaticField("desig_desc", get_designation_of($emp_id3), "Designation");
        # Income-Positions
        printRow(array("<div align=\"center\"><h2>INCOME</h2></div>"), "", "1,2");
        foreach ($income_salary_elements_array_desc as $key => $value) {
            makeTextField("salary_field_" . $key, $edit_salary["{$key}"], "{$value}", 10, "onFocus=\"editIncomeField(this.value)\" onChange=\"changedIncomeField(this.value) \"");
            $income_sum += $edit_salary["{$key}"];
        }
        makeStaticField("income_sum", $income_sum, "Income Sum:", "", 11);
        # Expense-Positions
        printRow(array("<div align=\"center\"><h2>EXPENSE</h2></div>"), "", "1,2");
        foreach ($expense_salary_elements_array_desc as $key => $value) {
            makeTextField("salary_field_" . $key, $edit_salary["{$key}"], "{$value}", 10, "onFocus=\"editExpenseField(this.value)\" onChange=\"changedExpenseField(this.value) \"");
            $expense_sum += $edit_salary["{$key}"];
        }
        makeStaticField("expense_sum", $expense_sum, "Expense Sum:", "", 11);
        printRow(array("<hr>"), "", "1,2");
        makeStaticField("total_sum", $income_sum - $expense_sum, "Total Sum:", "", 14);
        makeSpecialSubmitter("submit", "onClick='this.form.submitnow.value=\"1\"'");
        endPrettyTable();
        closeForm();
        ?>
	</td>
	  </table>
	  <?php 
    } else {
        $personal_array = get_personal_array();
        openForm("selectemployee", $PHP_SELF);
Exemplo n.º 19
0
	   <tr>
	    <td><hr color='black'></td>
	   </tr>
	   <?php 
    endPrettyTable();
    # it just print out some HTML
    ?>
	  </td>
	  <td valign=top align=center width='65%'>
	     <?php 
    # Ok, we are again in PHP-Mode
    # Prints all that HTML-stuff, we don't want to deal with
    openForm("enterDEPARTMENT", $PHP_SELF);
    # Prints all that HTML-stuff, we don't want to deal with
    beginPrettyTable("2", "enter DEPARTMENT");
    # makeHiddenField("dept_id", $edit["DEPT_ID"]); This one, we perhaps use it later
    # "dept_name" is the name of the form (see html-page)
    # It will get a variable if this Program is called once again
    # (see upper "if"-Statement)
    makeTextField("dept_name", $edit["DEPT_NAME"], "Department");
    # print out the code for that "submit"-Button
    makeSubmitter();
    # Prints all that HTML-stuff, we don't want to deal with
    endPrettyTable();
    # Prints all that HTML-stuff, we don't want to deal with
    closeForm();
    # sometimes, we have to print it out directly with "echo"
    echo "</td> </table>";
}
# Prints all that HTML-stuff, we don't want to deal with
endDocument();
Exemplo n.º 20
0
	
           <?php 
    beginPrettyTable("1");
    ?>
	   <tr>
	    <?php 
    echo "<td><a href='list_acs.php?showac={$ac}'>show List</a></td>";
    ?>
	   </tr>
	   <tr>
	    <td><hr color='black'></td>
	   </tr>
	   <?php 
    endPrettyTable();
    ?>
	  </td>
	  <td valign=top align=center width='65%'>
	   <?php 
    openForm("enterAC_CODE{$ac}", $PHP_SELF);
    beginPrettyTable("2", "enter AC_CODE{$ac}");
    makeHiddenField("ac", $ac);
    makeTextField("ac_desc", "", "AC_CODE{$ac}");
    makeSubmitter();
    endPrettyTable();
    closeForm();
    ?>
	   </td>
	  </table>
	  <?php 
}
endDocument();
Exemplo n.º 21
0
    }
    printRow(array("", "<b>total Receipts<b>", "<b>" . $transactions->getTotalReceipts() . "</b>"));
    endPrettyTable();
    # Payments
    # generate Transaction-object
    if ($ac_id1 != 0) {
        $transactions = new Transactions($ac_id1, $startdate, $enddate);
    } else {
        $transactions = new Transactions_byProject("1", $startdate, $enddate);
    }
    beginPrettyTable("4", "Payments");
    printRow(array("Code Number", "Description", "Amount", "VR-Type"));
    while ($row = $transactions->getNextPayment()) {
        printRow($row, "fluct");
    }
    printRow(array("", "<b>total Payments</b>", "<b>" . $transactions->getTotalPayments() . "</b>"));
    printRow(array("", "<b>closing Balance:</b> ", "<b>" . $transactions->getClosingBalance() . "</b>"));
    endPrettyTable();
} else {
    $ac_array = get_ac_array(1);
    $ac_array[0] = "ALL PROJECTS";
    openForm("enter Date", $PHP_SELF);
    beginPrettyTable("2", "Project Transactions");
    makeDropBox("ac_id1", $ac_array, "Project");
    makeTextField("startdate", get_today_hrd_string(), "Start Date:");
    makeTextField("enddate", get_today_hrd_string(), "End Date:");
    makeSubmitter();
    endPrettyTable();
    closeForm();
}
endDocument();
Exemplo n.º 22
0
	    <?php 
    echo "<td><a href='list_personal.php'>show List</a></td>";
    ?>
	   </tr>
	   <tr>
	    <td><hr color='black'></td>
	   </tr>
	   <?php 
    endPrettyTable();
    ?>
	  </td>
	  <td valign=top align=center width='65%'>
	     <?php 
    openForm("enter Personal", $PHP_SELF);
    beginPrettyTable("2", "enter Personal");
    makeHiddenField("emp_id3", $edit["EMP_ID3"]);
    makeTextField("emp_name", $edit["EMP_NAME"], "Employer Name");
    makeDropBox("desig_id", $desig_array, "Designation", $edit["DESIG_ID"]);
    makeDropBox("status", array("Y" => "Y", "N" => "N", "UNKNOWN" => ""), "Status", $edit["STATUS"]);
    makeTextField("ac_no", $edit["AC_NO"], "Account Number");
    makeTextField("conf_dt", $edit["CONF_DT"], "Conf_Date");
    makeTextField("join_dt", $edit["JOIN_DT"], "Join Date");
    makeSubmitter();
    endPrettyTable();
    closeForm();
    ?>
	</td>
	  </table>
	  <?php 
}
endDocument();
Exemplo n.º 23
0
 function present($player)
 {
     $message = '';
     if (count($this->errors) > 0) {
         foreach ($this->errors as $booboo) {
             $message .= $booboo . '<br>';
         }
     }
     $this->data['message'] = $message;
     //make ID read-only (auto-incremented in db)
     $this->data['fid'] = makeTextField('ID#', 'id', $player->id, "Unique, system-assigned", 10, 10, true);
     $this->data['ffirstname'] = makeTextField('First Name', 'firstname', $this->session->playerFname);
     $this->data['flastname'] = makeTextField('Last Name', 'lastname', $this->session->playerLname);
     $this->data['fnumber'] = makeTextField('Jersey Number', 'number', $this->session->playerNumber);
     $this->data['fposition'] = makeTextField('Player Position', 'position', $player->position);
     $this->data['emug'] = makeTextField('mug', 'mug', $this->session->playerMug);
     //submit button using formfields helper
     $this->data['fsubmit'] = makeSubmitButton('Process Player', 'success', 'btn-success');
     $this->data['pagebody'] = 'addPlayerView';
     $this->data['title'] = "Add New Player";
     $this->render();
 }
Exemplo n.º 24
0
	
           <?php 
    beginPrettyTable("1");
    ?>
	   <tr>
	    <?php 
    echo "<td><a href='list_salary_elements.php'>show List</a></td>";
    ?>
	   </tr>
	   <tr>
	    <td><hr color='black'></td>
	   </tr>
	   <?php 
    endPrettyTable();
    ?>
	  </td>
	  <td valign=top align=center width='65%'>
	     <?php 
    openForm("salaryelement_form", $PHP_SELF);
    beginPrettyTable("2", "enter salary element");
    makeTextField("sal_desc", "", "Salary Description");
    makeDropBox("id_tp", array("I" => "I", "E" => "E"), "Expenses/Income");
    makeSubmitter();
    endPrettyTable();
    closeForm();
    ?>
	</td>
	  </table>
	  <?php 
}
endDocument();
Exemplo n.º 25
0
    }
    $today = get_today_hrd_string();
    ?>
 
	<table cellpadding=5 cellspacing=0 border=0 width='100%'>
	 <tr>
          <td valign=top align=center width='65%'>
	     <?php 
    openForm("transaction", $PHP_SELF, "onSubmit='return checkBeforeSubmit()'");
    beginPrettyTable("2", "enter {$type_of_voucher} Voucher");
    makeHiddenField("ac_count", "{$ac_count}");
    makeHiddenField("submitnow", "");
    makePlainStaticField("vr_no", "", "Vr.No.:", 10);
    makePlainStaticField("t_dt", $today, "Transaction Date:", 10);
    makePlainTextField("vr_dt", $today, "Vr.-Date:", 10);
    makeTextField("remarks", "", "Narration:", 30, "onChange=\"copyNarrationField()\"");
    endPrettyTable();
    # Start now with that second part of the story
    $ac_array = get_ac5_sc_array("5(1/2)", "");
    beginPrettyTable("1", "I call it \"Counterbooking\"");
    ?>
 <tr><td>AccountName</td><td>Narration</td><td>Dept</td><td>DR_CR</td><td>Amount</td></tr><?php 
    for ($i = 0; $i < $ac_count; $i++) {
        startRow();
        makePlainDropBox("ac_name_{$i}", $ac_array);
        makePlainTextField("remarks_{$i}", "", "", 20);
        makePlainDropBox("dept_{$i}", $dept_array);
        makePlainTextField("dr_cr_{$i}", "", "", 2, "onChange='updateTotalFields()'");
        makePlainTextField("amount_{$i}", "", "", 6, "onChange='updateTotalFields()'");
        endRow();
    }