Esempio n. 1
0
function getSlideshow($slideshowId)
{
    $row = dbReadRow("SELECT src FROM slideshows WHERE id = '" . dbEscape($slideshowId) . "';");
    return reverse_escape($row['src']);
    // Fjernet denne linjen hos meg (Holger) fordi det blir feil å unescape på min maskin! Merkelig. Kanske forskjell på lokal maskin og server?
    //return $row['src'];
}
    echo '<table class="selection"><tr>
		<td>' . _('Date On Invoice') . ':</td>
	<td><input tabindex=' . $j . ' type="text" maxlength="10" size="15" name="DispatchDate" value="' . $DefaultDispatchDate . '" id="datepicker" alt="' . $_SESSION['DefaultDateFormat'] . '" class="date" /></td>
	</tr>';
    $j++;
    echo '<tr>
		<td>' . _('Consignment Note Ref') . ':</td>
		<td><input tabindex=' . $j . ' type="text" maxlength="15" size="15" name="Consignment" value="' . $_POST['Consignment'] . '" /></td>
	</tr>';
    $j++;
    echo '<tr>
		<td>' . _('Action For Balance') . ':</td>
		<td><select tabindex="' . $j . '" name="BOPolicy">
			<option selected="True" value="BO">' . _('Automatically put balance on back order') . '</option>
			<option value="CAN">' . _('Cancel any quantities not delivered') . '</option>' . '</select></td>
	</tr>';
    $j++;
    echo '<tr>
		<td>' . _('Invoice Text') . ':</td>
		<td><textarea tabindex="' . $j . '" name="InvoiceText" cols="31" rows="5">' . reverse_escape($_POST['InvoiceText']) . '</textarea></td>
	</tr>';
    $j++;
    echo '</table>
	<br /><div class="centre">
	<button type="submit" tabindex="' . $j . '" name="Update">' . _('Update') . '</button><br />';
    $j++;
    echo '<br /><button type="submit" tabindex="' . $j . '" name="ProcessInvoice">' . _('Process Invoice') . '</button></div><br />';
    echo '<input type="hidden" name="ShipVia" value="' . $_SESSION['Items']->ShipVia . '" />';
}
echo '</form>';
include 'includes/footer.inc';