<?php echo $header; ?><?php echo $column_left; ?>
<div id="content">
  <div class="page-header">
    <div class="container-fluid">
      <div class="pull-right">
        <button type="submit" form="form-blog_latest" data-toggle="tooltip" title="<?php echo $button_save; ?>" class="btn btn-primary"><i class="fa fa-save"></i></button>
        <a href="<?php echo $cancel; ?>" data-toggle="tooltip" title="<?php echo $button_cancel; ?>" class="btn btn-default"><i class="fa fa-reply"></i></a></div>
      <h1><?php echo $heading_title; ?></h1>
      <ul class="breadcrumb">
        <?php foreach ($breadcrumbs as $breadcrumb) { ?>
        <li><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a></li>
        <?php } ?>
      </ul>
    </div>
  </div>
  <div class="container-fluid">
    <?php if ($error_warning) { ?>
    <div class="alert alert-danger"><i class="fa fa-exclamation-circle"></i> <?php echo $error_warning; ?>
      <button type="button" class="close" data-dismiss="alert">&times;</button>
    </div>
    <?php } ?>
    <div class="panel panel-default">
      <div class="panel-heading">
        <h3 class="panel-title"><i class="fa fa-pencil"></i> <?php echo $text_edit; ?></h3>
      </div>
      <div class="panel-body">
        <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="form-blog_latest" class="form-horizontal">
          <div class="alert alert-info"><i class="fa fa-info-circle"></i> <?php echo $text_cwkj_wxts; ?></div>   
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-status"><?php echo $entry_status; ?></label>
            <div class="col-sm-10">
              <select name="status" id="input-status" class="form-control">
                <?php if ($status) { ?>
                <option value="1" selected="selected"><?php echo $text_enabled; ?></option>
                <option value="0"><?php echo $text_disabled; ?></option>
                <?php } else { ?>
                <option value="1"><?php echo $text_enabled; ?></option>
                <option value="0" selected="selected"><?php echo $text_disabled; ?></option>
                <?php } ?>
              </select>
            </div>
          </div> 
		  <div class="form-group">
            <label class="col-sm-2 control-label" for="input-name"><?php echo $entry_name; ?></label>
            <div class="col-sm-10">
              <input type="text" name="name" value="<?php echo $name; ?>" placeholder="<?php echo $entry_name; ?>" id="input-name" class="form-control" />
              <?php if ($error_name) { ?>
              <div class="text-danger"><?php echo $error_name; ?></div>
              <?php } ?>
            </div>
          </div>
          
          <div class="form-group  hidden">
            <label class="col-sm-2 control-label" for="input-width"><?php echo $entry_title; ?></label>
            <div class="col-sm-10">
            <?php foreach ($languages as $language) { ?>
            <span class="input-group-addon"><img src="language/<?php echo $language['code']; ?>/<?php echo $language['code']; ?>.png" title="<?php echo $language['name']; ?>" /></span>
            <input type="text" name="title[<?php echo $language['language_id']; ?>]" value="<?php echo isset($title[$language['language_id']]) ? $title[$language['language_id']] : ''; ?>" class="form-control" />
            <?php } ?>
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-titlename"><?php echo $entry_titlename; ?></label>
            <div class="col-sm-10">
              <input type="text" name="titlename" value="<?php echo $titlename; ?>" placeholder="<?php echo $entry_titlename; ?>" id="input-titlename" class="form-control" />
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-segmentingline"><?php echo $entry_segmentingline; ?></label>
            <div class="col-sm-10">
			<div class="row">
			<div class="col-sm-4">
              <input type="text" name="linew" value="<?php echo $linew; ?>" placeholder="<?php echo $entry_linew; ?>" id="input-linew" class="form-control" />
            </div>
			<div class="col-sm-4">
              <input type="text" name="lineh" value="<?php echo $lineh; ?>" placeholder="<?php echo $entry_lineh; ?>" id="input-lineh" class="form-control" />
            </div>
			<div class="col-sm-4">
              <input type="text" name="linec" value="<?php echo $linec; ?>" placeholder="<?php echo $entry_linec; ?>" id="input-linec" class="color {required:false,hash:true} form-control" />
            </div>
			</div>
			</div>
          </div> 		  
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-describe"><?php echo $entry_describe; ?></label>
            <div class="col-sm-10">
              <textarea name="describe" rows="2" placeholder="<?php echo $entry_describe; ?>" id="input-describe" class="form-control" /><?php echo $describe; ?></textarea>
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-href"><?php echo $entry_button1; ?></label>
			<div class="col-sm-10">
			<div class="row">
            <div class="col-sm-6">
              <input type="text" name="buttonname1" value="<?php echo $buttonname1; ?>" placeholder="<?php echo $entry_buttonname1; ?>" id="input-buttonname1" class="form-control" />
            </div>
             <div class="col-sm-6">
              <input type="text" name="buttoncolor1" value="<?php echo $buttoncolor1; ?>" placeholder="<?php echo $entry_buttoncolor1; ?>" id="input-buttoncolor1" class="form-control" />
            </div>
			</div>
			</div>
          </div>  
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-href"><?php echo $entry_button2; ?></label>
			<div class="col-sm-10">
			<div class="row">
            <div class="col-sm-6">
              <input type="text" name="buttonname2" value="<?php echo $buttonname2; ?>" placeholder="<?php echo $entry_buttonname2; ?>" id="input-buttonname2" class="form-control" />
            </div>
             <div class="col-sm-6">
              <input type="text" name="buttoncolor2" value="<?php echo $buttoncolor2; ?>" placeholder="<?php echo $entry_buttoncolor2; ?>" id="input-buttoncolor2" class="form-control" />
            </div>
			</div>
			</div>
          </div>
	  
		  <div class="form-group">
            <label class="col-sm-2 control-label" for="input-main"><?php echo $entry_main; ?></label>
            <div class="col-sm-10">
              <select name="main" id="input-main" class="form-control">
				<?php if ($main == 'container') { ?>
                <option value="container" selected="selected"><?php echo $text_mainc; ?></option>
				<?php } else { ?>
                <option value="container"><?php echo $text_mainc; ?></option>
				<?php } ?>
				<?php if ($main == 'fullwidth') { ?>
                <option value="fullwidth" selected="selected"><?php echo $text_mainfw; ?></option>
				<?php } else { ?>
				<option value="fullwidth"><?php echo $text_mainfw; ?></option>
                <?php } ?>
              </select>
            </div>
          </div>
		  <div class="form-group">
            <label class="col-sm-2 control-label" for="input-autoplay"><?php echo $entry_autoplay; ?></label>
            <div class="col-sm-10">
              <select name="autoplay" id="input-autoplay" class="form-control">
                <?php if ($autoplay) { ?>
                <option value="1" selected="selected"><?php echo $text_yes; ?></option>
                <option value="0"><?php echo $text_no; ?></option>
                <?php } else { ?>
                <option value="1"><?php echo $text_yes; ?></option>
                <option value="0" selected="selected"><?php echo $text_no; ?></option>
                <?php } ?>
              </select>
            </div>
          </div>
		  
		  <div class="form-group">
            <label class="col-sm-2 control-label" for="input-fade"><?php echo $entry_fade; ?></label>
            <div class="col-sm-10">
              <select name="fade" id="input-fade" class="form-control">
                <?php if ($fade) { ?>
                <option value="1" selected="selected"><?php echo $text_yes; ?></option>
                <option value="0"><?php echo $text_no; ?></option>
                <?php } else { ?>
                <option value="1"><?php echo $text_yes; ?></option>
                <option value="0" selected="selected"><?php echo $text_no; ?></option>
                <?php } ?>
              </select>
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-speed"><?php echo $entry_speed; ?></label>
            <div class="col-sm-10">
              <input type="text" name="speed" value="<?php echo $speed; ?>" placeholder="<?php echo $entry_speed; ?>" id="input-speed" class="form-control" />
            </div>
          </div>  		  
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-column"><span data-toggle="tooltip" title="<?php echo $help_column; ?>"><?php echo $entry_columns; ?></span></label>
            <div class="col-sm-10">
			<div class="row">
			<div class="col-sm-4">
              <input type="text" name="column" value="<?php echo $column; ?>" placeholder="<?php echo $entry_column; ?>" id="input-column" class="form-control" />
			</div>
			<div class="col-sm-4">
              <input type="text" name="rows" value="<?php echo $rows; ?>"  placeholder="<?php echo $entry_rows; ?>" id="input-rows" class="form-control"  />
			  </div>
	            <div class="col-sm-4">
              <input type="text" name="scroll" value="<?php echo $scroll; ?>" placeholder="<?php echo $entry_scroll; ?>" id="input-scroll" class="form-control" />
            </div>
			</div>
			</div>
          </div>  		  
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-section"><?php echo $entry_section; ?></label>
            <div class="col-sm-10">
			<div class="row">
            <div class="col-sm-2">
              <input type="text" name="sectionbj" value="<?php echo $sectionbj; ?>"  placeholder="<?php echo $entry_sectionbj; ?>" id="input-sectionbj" class="color {required:false,hash:true} form-control"  />
              </div>
            <div class="col-sm-2">
              <input type="text" name="sectionjbbj" value="<?php echo $sectionjbbj; ?>"  placeholder="<?php echo $entry_sectionjbbj; ?>" id="input-sectionjbbj" class="color {required:false,hash:true} form-control"  />
              </div>
            <div class="col-sm-2">
              <input type="text" name="sectiontitle" value="<?php echo $sectiontitle; ?>"  placeholder="<?php echo $entry_sectiontitle; ?>" id="input-sectiontitle" class="color {required:false,hash:true} form-control"  />
              </div>
            <div class="col-sm-2">
              <input type="text" name="sectiondescribe" value="<?php echo $sectiondescribe; ?>"  placeholder="<?php echo $entry_sectiondescribe; ?>" id="input-sectiondescribe" class="color {required:false,hash:true} form-control"  />
              </div>
            <div class="col-sm-2">
              <input type="text" name="sectionptop" value="<?php echo $sectionptop; ?>"  placeholder="<?php echo $entry_sectionptop; ?>" id="input-sectionptop" class="form-control"  />
              </div>
            <div class="col-sm-2">
              <input type="text" name="sectionpbuttom" value="<?php echo $sectionpbuttom; ?>"  placeholder="<?php echo $entry_sectionpbuttom; ?>" id="input-sectionpbuttom" class="form-control"  />
              </div>
            </div>
			</div>
          </div>            
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-box"><?php echo $entry_box; ?></label>
            <div class="col-sm-10">
			<div class="row">
            <div class="col-sm-2">
              <input type="text" name="boxbg" value="<?php echo $boxbg; ?>"  placeholder="<?php echo $entry_boxbg; ?>" id="input-boxbg" class="color {required:false,hash:true} form-control"  />
              </div>
            <div class="col-sm-2">
              <input type="text" name="boxjbbj" value="<?php echo $boxjbbj; ?>"  placeholder="<?php echo $entry_boxjbbj; ?>" id="input-boxjbbj" class="color {required:false,hash:true} form-control"  />
              </div>
            <div class="col-sm-2">
              <input type="text" name="boxtitle" value="<?php echo $boxtitle; ?>"  placeholder="<?php echo $entry_boxtitle ?>" id="input-boxtitle" class="color {required:false,hash:true} form-control"  />
              </div>
            <div class="col-sm-2">
              <input type="text" name="boxdescribe" value="<?php echo $boxdescribe; ?>"  placeholder="<?php echo $entry_boxdescribe; ?>" id="input-boxdescribe" class="color {required:false,hash:true} form-control"  />
              </div>
            <div class="col-sm-2">
              <input type="text" name="boxxinxi" value="<?php echo $boxxinxi; ?>"  placeholder="<?php echo $entry_boxxinxi; ?>" id="input-boxxinxi" class="color {required:false,hash:true} form-control"  />
              </div>
            <div class="col-sm-2">
              <input type="text" name="boxmagin" value="<?php echo $boxmagin; ?>"  placeholder="<?php echo $entry_boxmagin; ?>" id="input-boxmagin" class="form-control"  />
              </div>
            <div class="col-sm-2">
              <input type="text" name="boxpadding" value="<?php echo $boxpadding; ?>"  placeholder="<?php echo $entry_boxpadding; ?>" id="input-boxpadding" class="form-control"  />
              </div>
            <div class="col-sm-2">
              <input type="text" name="boxborder" value="<?php echo $boxborder; ?>"  placeholder="<?php echo $entry_boxborder; ?>" id="input-boxborder" class="form-control"  />
              </div>
            <div class="col-sm-2">
              <input type="text" name="boxcolor" value="<?php echo $boxcolor; ?>"  placeholder="<?php echo $entry_boxcolor; ?>" id="input-boxcolor" class="color {required:false,hash:true} form-control"  />
              </div>
            <div class="col-sm-2">
              <input type="text" name="boxround" value="<?php echo $boxround; ?>"  placeholder="<?php echo $entry_boxround; ?>" id="input-boxround" class="form-control"  />
              </div>
            <div class="col-sm-2">
              <input type="text" name="boxposition" value="<?php echo $boxposition; ?>"  placeholder="<?php echo $entry_boxposition; ?>" id="input-boxposition" class="form-control"  />
              </div>
            <div class="col-sm-2">
              <input type="text" name="boxshadow" value="<?php echo $boxshadow; ?>"  placeholder="<?php echo $entry_boxshadow; ?>" id="input-boxshadow" class="form-control"  />
              </div> 
            <div class="col-sm-2">
              <input type="text" name="boxshadowhover" value="<?php echo $boxshadowhover; ?>"  placeholder="<?php echo $entry_boxshadowhover; ?>" id="input-boxshadowhover" class="form-control"  />
              </div> 			  
            </div>
			</div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-box"><?php echo $entry_buttonstyle; ?></label>
            <div class="col-sm-10">
			<div class="row">
            <div class="col-sm-2">
              <input type="text" name="buttonsize" value="<?php echo $buttonsize; ?>"  placeholder="<?php echo $entry_buttonsize; ?>" id="input-buttonsize" class="form-control"  />
              </div>
            <div class="col-sm-2">
              <input type="text" name="buttoninset" value="<?php echo $buttoninset; ?>"  placeholder="<?php echo $entry_buttoninset; ?>" id="input-buttoninset" class="form-control"  />
              </div>
            <div class="col-sm-2">
              <input type="text" name="buttonborder" value="<?php echo $buttonborder; ?>"  placeholder="<?php echo $entry_buttonborder ?>" id="input-buttonborder" class="form-control"  />
              </div>
            <div class="col-sm-2">
              <input type="text" name="buttonround" value="<?php echo $buttonround; ?>"  placeholder="<?php echo $entry_buttonround; ?>" id="input-buttonround" class="form-control"  />
              </div>
            <div class="col-sm-2">
              <input type="text" name="buttonhover" value="<?php echo $buttonhover; ?>"  placeholder="<?php echo $entry_buttonhover; ?>" id="input-buttonhover" class="form-control"  />
              </div>
            <div class="col-sm-2">
              <input type="text" name="buttond" value="<?php echo $buttond; ?>"  placeholder="<?php echo $entry_buttond; ?>" id="input-buttond" class="form-control"  />
              </div>			  
            </div>
			</div>
          </div>            
          <div class="form-group">
            <label class="col-sm-2 control-label"><?php echo $entry_limit; ?></label>
            <div class="col-sm-10">
              <input type="text" name="limit" value="<?php echo $limit; ?>" placeholder="<?php echo $entry_limit; ?>" id="input-limit" class="form-control" />
            </div>
          </div>
          
          <div class="form-group">
            <label class="col-sm-2 control-label"><?php echo $entry_category; ?></label>
            <div class="col-sm-10">
              <select name="category" class="form-control">
              <option value="0"><?php echo $text_none; ?></option>
              <?php foreach ($blog_categories as $blog_category) { ?>
              <?php if ($blog_category['blog_category_id'] == $category) { ?>
              <option value="<?php echo $blog_category['blog_category_id']; ?>" selected="selected"><?php echo $blog_category['name']; ?></option>
              <?php } else { ?>
              <option value="<?php echo $blog_category['blog_category_id']; ?>"><?php echo $blog_category['name']; ?></option>
              <?php } ?>
              <?php } ?>
            </select>
            </div>
          </div>
                    
          <div class="form-group hidden">
            <label class="col-sm-2 control-label" for="input-width"><?php echo $entry_columns; ?></label>
            <div class="col-sm-10">
            <select name="columns" id="input-columns" class="form-control">
            <?php if ($columns == '4') { ?>
            <option value="4" selected="selected"><?php echo $text_4; ?></option>
            <?php } else { ?>
            <option value="4"><?php echo $text_4; ?></option>
            <?php } ?>
            <?php if ($columns == '3') { ?>
            <option value="3" selected="selected"><?php echo $text_3; ?></option>
            <?php } else { ?>
            <option value="3"><?php echo $text_3; ?></option>
            <?php } ?>
            <?php if ($columns == '2') { ?>
            <option value="2" selected="selected"><?php echo $text_2; ?></option>
            <?php } else { ?>
            <option value="2"><?php echo $text_2; ?></option>
            <?php } ?>
            <?php if ($columns == '1') { ?>
            <option value="1" selected="selected"><?php echo $text_1; ?></option>
            <?php } else { ?>
            <option value="1"><?php echo $text_1; ?></option>
            <?php } ?>
             </select>
            </div>
          </div>
          
          <div class="form-group hidden">
            <label class="col-sm-2 control-label" for="input-width"><?php echo $entry_carousel; ?></label>
            <div class="col-sm-10">
             <select name="carousel" id="input-carousel" class="form-control">
                <?php if ($carousel) { ?>
                <option value="1" selected="selected"><?php echo $text_enabled; ?></option>
                <option value="0"><?php echo $text_disabled; ?></option>
                <?php } else { ?>
                <option value="1"><?php echo $text_enabled; ?></option>
                <option value="0" selected="selected"><?php echo $text_disabled; ?></option>
                <?php } ?>
              </select>
            </div>
          </div>
          
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-width">
            <span data-toggle="tooltip" title="<?php echo $entry_characters_h; ?>"><?php echo $entry_characters; ?></span></label>
            <div class="col-sm-10">
              <input type="text" name="characters" value="<?php echo $characters; ?>" placeholder="<?php echo $entry_characters; ?>" id="input-limit" class="form-control" />
            </div>
          </div>
          
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-status"><?php echo $entry_thumb; ?></label>
            <div class="col-sm-10">
              <select name="thumb" id="input-status" class="form-control">
                <?php if ($thumb) { ?>
                <option value="1" selected="selected"><?php echo $text_enabled; ?></option>
                <option value="0"><?php echo $text_disabled; ?></option>
                <?php } else { ?>
                <option value="1"><?php echo $text_enabled; ?></option>
                <option value="0" selected="selected"><?php echo $text_disabled; ?></option>
                <?php } ?>
              </select>
            </div>
          </div>
          
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-height"><?php echo $entry_thumb_size; ?></label>
            <div class="col-sm-5">
            <input type="text" name="width" value="<?php echo $width; ?>" id="input-width" class="form-control" />
            </div>
            <div class="col-sm-5">
            <input type="text" name="height" value="<?php echo $height; ?>" id="input-height" class="form-control" />
            </div>
          </div>
        </form>
      </div>
    </div>
  </div>
</div>
 <script type="text/javascript" src="view/javascript/jscolor/jscolor.js"></script>
<?php echo $footer; ?>