%PDF- %PDF-
Direktori : /home1/dimen328/libertysa.com.br/admin/modules/blog/app/views/pjAdminPosts/ |
Current File : //home1/dimen328/libertysa.com.br/admin/modules/blog/app/views/pjAdminPosts/pjActionCreate.php |
<?php if (isset($tpl['status'])) { $status = __('status', true); switch ($tpl['status']) { case 2: pjUtil::printNotice(NULL, $status[2]); break; } } else { ?> <div class="ui-tabs ui-widget ui-widget-content ui-corner-all b10"> <ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all"> <li class="ui-state-default ui-corner-top"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?controller=pjAdminPosts&action=pjActionIndex"><?php __('menuPosts'); ?></a></li> <li class="ui-state-default ui-corner-top ui-tabs-active ui-state-active"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?controller=pjAdminPosts&action=pjActionCreate"><?php __('lblAddPost'); ?></a></li> </ul> </div> <?php pjUtil::printNotice(__('infoAddPostTitle', true, false), __('infoAddPostBody', true, false)); ?> <form action="<?php echo $_SERVER['PHP_SELF']; ?>?controller=pjAdminPosts&action=pjActionCreate" method="post" id="frmCreatePost" class="form pj-form" autocomplete="off" enctype="multipart/form-data"> <input type="hidden" name="post_create" value="1" /> <p> <label class="title110"><?php __('lblCategory'); ?></label> <span class="inline_block"> <select name="category_id" id="category_id" class="pj-form-field w300 required"> <option value="">-- <?php __('lblChoose'); ?>--</option> <?php foreach ($tpl['category_arr'] as $v) { ?><option value="<?php echo $v['id']; ?>"><?php echo stripslashes($v['category']); ?></option><?php } ?> </select> <?php if(empty($tpl['category_arr'])){ ?><label class="content float_left l5"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?controller=pjAdminCategories&action=pjActionCreate"><?php __('lblAddCategory', false, true);?></a></label><?php } ?> </span> </p> <?php if($controller->isAdmin()) { ?> <p> <label class="title110"><?php __('lblAuthor'); ?></label> <span class="inline_block"> <select name="author_id" id="author_id" class="pj-form-field w300 required"> <option value="">-- <?php __('lblChoose'); ?>--</option> <?php foreach ($tpl['author_arr'] as $v) { ?><option value="<?php echo $v['id']; ?>"><?php echo stripslashes($v['name']); ?></option><?php } ?> </select> </span> </p> <?php } ?> <p> <label class="title110"><?php __('lblTitle', false, true); ?></label> <span class="inline_block"> <input type="text" name="title" id="title" class="pj-form-field required w400" maxlength="200"/> </span> </p> <p> <label class="title110"><?php __('lblBody'); ?></label> <span class="inline_block"> <textarea id="body" name="body" class="mceEditor" style="width: 600px; height: 250px"></textarea> </span> </p> <p> <label class="title110"><?php __('lblImage', false, true); ?></label> <span class="inline_block"> <input type="file" name="image" id="image" class="pj-form-field w300"/> </span> </p> <p> <label class="title110"><?php __('lblStatus'); ?></label> <span class="inline_block"> <select name="status" id="status" class="pj-form-field required"> <option value="">-- <?php __('lblChoose'); ?>--</option> <?php foreach (__('u_statarr', true) as $k => $v) { ?><option value="<?php echo $k; ?>"><?php echo $v; ?></option><?php } ?> </select> </span> </p> <p> <label class="title110"> </label> <input type="submit" value="<?php __('btnSave', false, true); ?>" class="pj-button" /> </p> </form> <script type="text/javascript"> var myLabel = myLabel || {}; myLabel.field_required = "<?php __('lblFieldRequired', false, true); ?>"; </script> <?php } ?>