コード例 #1
0
ファイル: editListsSuccess.php プロジェクト: kotow/work
	<?php 
    echo panel_hidden('id', $obj, '', 'getId');
    ?>
	<?php 
    echo panel_hidden('parent', $sf_request->getParameter('parent'));
    ?>
	<fieldset class='drop-shadow'>

	<?php 
    echo panel_input('attrLabel', $obj, array('labelname' => 'Label', 'model' => 'Lists', 'maxlength' => '255', 'required' => 'true', 'class' => 'medium'), 'getLabel');
    ?>
	<?php 
    echo panel_input('attrListId', $obj, array('labelname' => 'List ID', 'model' => 'Lists', 'maxlength' => '255', 'required' => 'true', 'class' => 'medium'), 'getListId');
    ?>
	<?php 
    echo panel_select('attrListType', $obj, Lists::getListitemsForSelect('list_types'), array('labelname' => 'List type', 'model' => 'Lists', 'required' => 'true', 'class' => 'medium'), 'getListType');
    ?>

	<?php 
    echo panel_separator('hr', array('class' => 'brake'));
    ?>
	<?php 
    if (count($tags) > 0) {
        echo panel_tags($tags, $obj);
        echo panel_separator('hr', array('class' => 'brake'));
    }
    ?>
	<?php 
    echo panel_save_button(array('div' => 'buttons', 'class' => 'submit', 'value' => 'Save changes'));
    ?>
	<?php 
コード例 #2
0
ファイル: editUserSuccess.php プロジェクト: kotow/work
	<?php 
echo panel_input('Confirmpass', $obj, array('labelname' => 'Confirm password', 'model' => 'User', 'maxlength' => '50', 'validate' => 'compare', 'class' => 'large'), 'getConfirmpass');
?>
	<?php 
echo panel_input('attrPhone', $obj, array('labelname' => 'Phone', 'model' => 'User', 'maxlength' => '20'), 'getPhone');
?>

	<?php 
echo panel_separator('hr', array('class' => 'brake'));
?>

	<?php 
echo panel_hidden('attrBackend', $obj, array('labelname' => 'Backend', 'model' => 'User'), 'getBackend');
?>
	<?php 
echo panel_select('attrType', $obj, Lists::getListitemsForSelect('usertype'), array('labelname' => 'Type', 'model' => 'User'), 'getType');
?>
	<?php 
//echo panel_date('attrBirthDate', $obj, array('labelname' => 'BirthDate' , 'model' => 'User'), 'getBirthDate');
?>

	<?php 
echo panel_separator('hr', array('class' => 'brake'));
?>
	<?php 
if (count($tags) > 0) {
    echo panel_tags($tags, $obj);
    echo panel_separator('hr', array('class' => 'brake'));
}
?>
	<?php 
コード例 #3
0
ファイル: editProductSuccess.php プロジェクト: kotow/work
echo panel_input('attrLabel', $obj, array('labelname' => 'Label', 'model' => 'Product', 'maxlength' => 255, 'required' => 'true', 'class' => 'large'), 'getLabel');
?>
	<?php 
echo panel_image('attrImage', $obj, array('labelname' => 'Main picture', 'model' => 'Product', 'allowed' => 'images'), 'getImage');
?>
	<?php 
echo panel_input('attrShortDescription', $obj, array('labelname' => 'Short description', 'model' => 'Product', 'maxlength' => 100, 'class' => 'large'), 'getShortDescription');
?>
	<?php 
echo panel_textarea('attrDescription', $obj, array('labelname' => 'Description', 'model' => 'Product', 'size' => '50x5', 'richtext' => 'true', 'class' => 'mceEditor'), 'getDescription');
?>
	<?php 
echo panel_input('attrPrice', $obj, array('labelname' => 'Price', 'model' => 'Product', 'class' => 'short'), 'getPrice');
?>
	<?php 
echo panel_select('attrCurrency', $obj, Lists::getListitemsForSelect('currency'), array('labelname' => 'Currency', 'model' => 'Product', 'required' => 'true', 'class' => 'short'), 'getCurrency');
?>

	<?php 
if ($obj) {
    echo panel_gallery($obj->getId(), array('labelname' => 'Images gallery', 'width' => '800', 'crop_width' => '800', 'crop_height' => '600', 'thumb_width' => '120', 'path' => 'galleries_products'));
}
?>

	<?php 
echo panel_separator('hr', array('class' => 'brake'));
?>
	<?php 
if (count($tags) > 0) {
    echo panel_tags($tags, $obj);
    echo panel_separator('hr', array('class' => 'brake'));
コード例 #4
0
ファイル: editTrademarkSuccess.php プロジェクト: kotow/work
echo panel_input('attrApplicationNumber', $obj, array('labelname' => 'Application number', 'maxlength' => '255', 'required' => 'true', 'class' => 'large'), 'getApplicationNumber');
?>
	<?php 
echo panel_date('attrApplicationDate', $obj, array('labelname' => 'Application date', 'rich' => 1, 'class' => 'short'), 'getApplicationDate');
?>
	<?php 
echo panel_input('attrRegisterNumber', $obj, array('labelname' => 'Register number', 'maxlength' => '255', 'required' => 'true', 'class' => 'large'), 'getRegisterNumber');
?>
	<?php 
echo panel_date('attrRegistrationDate', $obj, array('labelname' => 'Registration date', 'rich' => 1, 'class' => 'short'), 'getRegistrationDate');
?>
	<?php 
echo panel_select('attrFromSystem', $obj, $systemsArr, array('labelname' => 'From system', 'disabled' => 1, 'class' => 'short'), 'getFromSystem');
?>
	<?php 
echo panel_select('attrKind', $obj, $kindsArr, array('labelname' => 'Kind', 'class' => 'short'), 'getKind');
?>
	<?php 
echo panel_date('attrDateRequested', $obj, array('labelname' => 'Date requested', 'rich' => 1, 'class' => 'short'), 'getDateRequested');
?>
	<?php 
echo panel_input('attrStatus', $obj, array('labelname' => 'Status', 'maxlength' => '255', 'class' => 'large'), 'getStatus');
?>
	<?php 
echo panel_date('attrExpiresOn', $obj, array('labelname' => 'Expires on', 'rich' => 1, 'class' => 'short'), 'getExpiresOn');
?>
	<?php 
echo panel_textarea('attrPublications', $obj, array('labelname' => 'Publications', 'size' => '70x5', 'rows' => '10'), 'getPublications');
?>
	<?php 
echo panel_input('attrViennaClasses', $obj, array('labelname' => 'VIENNA classes', 'maxlength' => '512', 'class' => 'large'), 'getViennaClasses');
コード例 #5
0
ファイル: mainMenuSuccess.php プロジェクト: kotow/work
<?php

$module = $sf_params->get("m");
?>
<div id="header-con"> 
	<!-- HEADER -->
	<div id="header">
		<div id="logo">
			<h1><a href="/panel/" title="DONE.CMS">Done.Cms</a></h1>
		</div>
		<ul id="header-nav">
	  		<li>
<?php 
$cultureArr = Lists::getListitemsForSelect('culture');
if (count($cultureArr) > 1) {
    echo panel_select('sf_culture', $sf_user->getCulture(), $cultureArr, array('labelname' => 'Select language'));
}
?>
			</li>
			<li>Welcome <a href="#" title="#" class="green"><?php 
echo $subscriber->getFirstName() . " " . $subscriber->getLastName();
?>
</a></li>
			<li><a href="/" title="#" target="_blank">Preview site</a></li>
			<li><a href="/panel/user/logout" title="#">Log out</a></li>
		</ul>
		<div class="clear"></div>
		<!-- END HEADER --> 
	</div>
</div>
コード例 #6
0
ファイル: editPageSuccess.php プロジェクト: kotow/work
echo panel_input('attrMetaDescription', $obj, array('labelname' => 'META Description', 'model' => 'PageI18n', 'maxlength' => 255, 'class' => 'large'), 'getMetaDescription');
?>
	<?php 
echo panel_input('attrMetaKeywords', $obj, array('labelname' => 'META Keywords', 'model' => 'PageI18n', 'maxlength' => 255, 'class' => 'large'), 'getMetaKeywords');
?>

	<?php 
echo panel_separator('hr', array('class' => 'brake'));
if (!$obj) {
    echo panel_select('attrTemplate', $obj, $template, array('labelname' => 'Template', 'model' => 'PageI18n', 'required' => 'true', 'class' => 'medium', 'wait' => 1), 'getTemplate');
} else {
    $user = $sf_user->getSubscriber();
    if ($user && $user->getType() == 'admin') {
        echo panel_select('attrTemplate', $obj, $template, array('labelname' => 'Template', 'model' => 'PageI18n', 'required' => 'true', 'class' => 'medium', 'wait' => 1), 'getTemplate');
    } else {
        echo panel_select('attrTemplate', $obj, $template, array('labelname' => 'Template', 'model' => 'PageI18n', 'disabled' => 'true', 'class' => 'medium'), 'getTemplate');
    }
}
?>
<div id="richtext_contents">
	<?php 
echo panel_textarea('attrContent', $obj, array('labelname' => 'Content', 'model' => 'PageI18n', 'size' => '50x5', 'richtext' => 'true', 'parse' => 1, 'class' => 'mceEditor'), 'getContent');
?>
</div>
	<?php 
echo panel_checkbox('attrIsSecure', $obj, array('labelname' => 'Is secure', 'model' => 'PageI18n'), 'getIsSecure');
?>
	<?php 
//echo panel_select('attrCulture', $obj, Lists::getListitemsForSelect('culture'), array('labelname' => 'Culture' , 'model' => 'PageI18n', 'unique' => 'true', 'required' => 'true', 'class' => 'medium'), 'getCulture');
?>
</div>