Code:
define('AJAX', SITE_URL.'library/ajax/');
define('AJAX', SITE_URL.'library/ajax/');
if(isset($_REQUEST['docID']))
{
$docID = $_REQUEST['docID'];
}
else
{
$docID = '';
}
if(isset($_REQUEST['diaryID']))
{
$diaryID = $_REQUEST['diaryID'];
}
else
{
$diaryID = '';
}
$Document = new Document();
if($docID)
{
$Document->deleteDocument($docID);
function addTimesheetRowFromEdit(currRow)
{
/* First of all, let's check if the next row already exists */
var nextTableRow = currRow
var xmlhttp;
function callAjax(url,str,divid)
{
xmlhttp=GetXmlHttpObject();
if (xmlhttp==null)
{
alert ("Browser does not support
<td>
<select id="employeeID_0'.$i.'" name="employeeID_0'.$i.'">
<option id="default" name="default" value="0">Please select an employee</option>';
$employeeContent = "";
foreach($this->getData('employeeList') as $dbEmployee)
{
$checkSelectedResult = '';
if(
<script>var tdEmployeeIDContent = "' . $employeeContent . '";</script>
// td column employee
var tdEmployeeID = row.insertCell(0);
var sel = document.createElement('select');
sel.name = 'employeeID_0' + iteration;
sel.id = 'employeeID_0' + iteration;
sel.options[0] = new Option('Please select an employee', '0');
//sel.innerHTML
function addTableRow()
{
var tbl = document.getElementById('addEmployeeTimesheet');
var lastRow = tbl.rows.length;
var iteration = lastRow;
var row = tbl.insertRow(lastRow);
// td column employee
var tdEmployeeID = row.insertCell(0);
var sel = document.createElement('select');
sel.name = 'employeeID_0' + iteration;
Leave a comment: