<!-- Form Start -->
<div class="block">
    <div class="title lightTextShadow"><?php echo $this->lang->line('new_create'); ?></div>
    <br />
    <a href="<?= base_url() ?>news/admin_news/overview" class="button sub inlineBlock rnd3 lightTextShadow">
        <span><?php echo $this->lang->line('button_news'); ?></span>
    </a>
    <a href="<?= base_url() ?>news/admin_news_category/overview" class="button sub inlineBlock rnd3 lightTextShadow">
        <span><?php echo $this->lang->line('button_categories'); ?></span>
    </a>   
    <div class="content">
        <?php echo form_open_multipart('news/admin_news/create', array('id' => 'new_new')) ?>
        <fieldset class="form boxStyle">                                


            <?php echo $this->template->flash_msg(); ?>

            <label for="new_title" class="label"><?php echo $this->lang->line('new_title'); ?></label>
            <input id="new_title" class="textBox med rnd5" name="new_title" value="<?= set_value('new_title') ?>"  />
            <?php echo form_error('new_title'); ?>
            <br />


            <label for="new_desc" class="label"><?php echo $this->lang->line('new_desc'); ?></label>
            <textarea id="new_desc" rows="6" cols="0" class="textArea lrg rnd5" name="new_desc" ><?= set_value('new_desc') ?></textarea>
            <?php echo form_error('new_desc'); ?>
            <br />

            <label for="new_topic" class="label"><?php echo $this->lang->line('new_topic'); ?></label>
            <textarea  id="textEditor" rows="6" cols="0" class="textArea lrg rnd5" name="new_topic" ><?= set_value('new_topic') ?></textarea>
            <?php echo form_error('new_topic'); ?>          	
            <br />
            <br />

            <label class="label"><?php echo $this->lang->line('new_category'); ?></label>
            <select size = "1" name="new_category" class="select rnd5">
                <?php foreach ($categories as $cat): ?>
                    <option value="<?php echo $cat['nc_id'] ?>" <?php echo set_select("new_category",$cat['nc_id']); ?>><?php echo $cat['nc_name'] ?></option>
                <?php endforeach; ?>
            </select>
            <?php echo form_error('category'); ?>
            <br />

            <label for="image_file" class="label"><?php echo $this->lang->line('image_file'); ?></label>
            <div class="fileUpload">
                <input id="file" type="file" name="image_file" value=""  />
                <span class="button rnd5 drkTextShadow">جلب الملف</span>
                <?php echo form_error('image_file'); ?>
            </div>
            <br />

            <label class="label"><?php echo $this->lang->line('or'); ?></label>
            <br />

            <label for="link_img" class="label"><?php echo $this->lang->line('link_img'); ?></label>            
            <input type="text" class="textBox med rnd5" name="link_img" value="<?= set_value('link_img') ?>"  />
            <?php echo form_error('link_img'); ?>
            <br />

            <label class="label">هل تريد تفعيل الخبر ؟</label>
            <input type="checkbox" name="hide" id="chk1" value="1" <?php echo set_checkbox("hide", "1", TRUE); ?> /><label for="chk1"><?php echo $this->lang->line('active'); ?></label>
            <br />

            <div class="center">
                <input id="submit" type="submit" value="تفريغ الحقول" class="button sub inlineBlock rnd3 lightTextShadow" />
                <input id="submit" type="submit" value="أدخل" class="button sml inlineBlock rnd5 drkTextShadow" />
            </div>
        </fieldset>
        <?php echo form_close(); ?>
    </div>
</div>