Esempio n. 1
0
function frontend_droppable($name, $input = null, $options = array(), $methode = null)
{
    $code = frontend_hidden('attr' . ucfirst($name), $input, '', 'get' . ucfirst($name));
    $code .= getDivLabel($options, $name);
    $obj = Document::getDocumentInstance(getVal($input, $methode, $name));
    if ($options['width']) {
        $code .= frontend_hidden('thumbwidth', $options['width']);
    }
    if ($options['height']) {
        $code .= frontend_hidden('thumbheight', $options['height']);
    }
    if ($options['path']) {
        $thumbpath = $options['path'] . "/";
    }
    if ($options['path']) {
        $code .= frontend_hidden('thumbpath', $options['path']);
    }
    $code .= "<table><tr>";
    if ($obj) {
        $label = $obj->getLabel();
        $fileName = $obj->getFilename();
        if ($obj->isImage()) {
            $src = "/media/display/thumb/thumbs/id/" . $obj->getId();
            $code .= '<td 	class="attrImage"
							id="' . $name . '"
							name="' . $name . '">';
            $code .= '<img	align="absbottom"
							height="100"
							src="' . $src . '"/>';
            $code .= '</td><td valign="bottom">';
            $code .= '&nbsp;<img style="border:none" src="/images/icons/clear.gif" onclick="document.getElementById(\'' . $name . '\').innerHTML = \'&nbsp;\'; document.getElementById(\'attr' . ucfirst($name) . '\').value = \'\'; ">';
            $code .= '</td>';
        } else {
            $code .= '<td 	class="attrImage"
							id="' . $name . '"
							name="' . $name . '">' . $label . "<br>" . $fileName . '</td><td valign="bottom">';
            $code .= '&nbsp;<img style="border:none" src="/images/icons/clear.gif" onclick="document.getElementById(\'' . $name . '\').innerHTML = \'&nbsp;\'; document.getElementById(\'attr' . ucfirst($name) . '\').value = \'\'; ">';
            $code .= '</td>';
        }
    } else {
        $code .= '<td 	class="attrImage"
						id="' . $name . '"
						name="' . $name . '">&nbsp;</td><td valign="bottom">';
        $code .= '&nbsp;<img style="border:none" src="/images/icons/clear.gif" onclick="document.getElementById(\'' . $name . '\').innerHTML = \'&nbsp;\'; document.getElementById(\'attr' . ucfirst($name) . '\').value = \'\'; ">';
        $code .= '</td>';
    }
    $code .= "</tr></table>";
    return $code;
}
Esempio n. 2
0
					<label for="name5">Дата на регистриране: </label>
					<?php 
echo frontend_input("field-RegistrationDate", null, array("readonly" => "readonly"));
?>
					
				</div>
			</div>
		</div>
		<div class="qfAddCtrls">
			<span class="hideFmPart">Скрий допълнителните полета</span>
		</div>
		<div class="qfFmCtrls">
			<a href="search-results.html"><input type="submit" value="Търси" class="qfSubmitBtn" onclick="$('#webSearch').submit();"></a>
		</div>
		<div></div>
		<?php 
echo frontend_hidden("submitted", "submitted");
?>
		</form>
	</div>
	<!-- </form> -->
</div>

<script type="text/javascript">
$(document).ready(function(){
	$( "#field-ApplicationDate" ).datepicker({dateFormat: 'yy-mm-dd'});
	$( "#field-RegistrationDate" ).datepicker({dateFormat: 'yy-mm-dd'});
});

</script>
Esempio n. 3
0
?>

	<?php 
if (!$noform) {
    ?>
	<form action="" method="post" id="form" name="form" enctype="multipart/form-data">
		<?php 
    if ($user) {
        echo frontend_hidden('id', $user->getId());
    }
    ?>
		<?php 
    echo frontend_hidden('submitted', 'submitted');
    ?>
		<?php 
    echo frontend_hidden('type', $type);
    ?>

		<table border="0" cellpadding="0" cellspacing="0" class="register">
		<tr>
			<th width="110"></th>
			<td></td>
		</tr>
		<?php 
    if ($type == "company") {
        ?>
		<tr >
			<th align="right" valign="top"></th>
			<td><strong>COMPANY DETAILS</strong></td>
		</tr>