<?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-banner" 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-banner-text-ad" class="form-horizontal">
          <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 required">
            <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 required">
            <label class="col-sm-2 control-label" for="input-image"><?php echo $entry_image; ?></label>
            <div class="col-sm-10">
              <a href="" id="thumb-image" data-toggle="image" class="img-thumbnail"><img src="<?php echo $thumb; ?>" alt="" title="" data-placeholder="<?php echo $placeholder; ?>" /></a>
              <input type="hidden" name="image" value="<?php echo $image; ?>" id="input-image" />
              <?php if ($error_image) { ?>
              <div class="text-danger"><?php echo $error_image; ?></div>
              <?php } ?>
            </div>
          </div>
          <div class="form-group required">
            <label class="col-sm-2 control-label" for="input-width"><?php echo $entry_width; ?></label>
            <div class="col-sm-10">
              <input type="text" name="width" value="<?php echo $width; ?>" placeholder="<?php echo $entry_width; ?>" id="input-width" class="form-control" />
              <?php if ($error_width) { ?>
              <div class="text-danger"><?php echo $error_width; ?></div>
              <?php } ?>
            </div>
          </div>
          <div class="form-group required">
            <label class="col-sm-2 control-label" for="input-height"><?php echo $entry_height; ?></label>
            <div class="col-sm-10">
              <input type="text" name="height" value="<?php echo $height; ?>" placeholder="<?php echo $entry_height; ?>" id="input-height" class="form-control" />
              <?php if ($error_height) { ?>
              <div class="text-danger"><?php echo $error_height; ?></div>
              <?php } ?>
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-bgcolor"><?php echo $entry_Alerts; ?></label>
            <div class="col-sm-10">
			<div class="row">
			<div class="col-sm-3">
              <input type="text" name="dbgcolor" value="<?php echo $dbgcolor; ?>"  placeholder="<?php echo $entry_dbgcolor; ?>" id="input-dbgcolor" class="form-control"  />
            </div>
			<div class="col-sm-3">
              <input type="text" name="dbgcolorj" value="<?php echo $dbgcolorj; ?>"  placeholder="<?php echo $entry_dbgcolorj; ?>" id="input-dbgcolorj" class="color {required:false,hash:true} form-control"  />
            </div>
            <div class="col-sm-3">
              <input type="text" name="tcolor" value="<?php echo $tcolor; ?>"  placeholder="<?php echo $entry_tcolor; ?>" id="input-tcolor" class="form-control"  />
            </div>
            <div class="col-sm-3">
              <input type="text" name="dpposition" value="<?php echo $dpposition; ?>" placeholder="<?php echo $entry_dpposition; ?>" id="input-dpposition" class="form-control" />
              <?php if ($error_dpposition) { ?>
              <div class="text-danger"><?php echo $error_dpposition; ?></div>
              <?php } ?>
            </div>
          </div> 
		  </div> 
		  </div> 

          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-button"><?php echo $entry_section1; ?></label>
            <div class="col-sm-10">
              <textarea name="section1" placeholder="<?php echo $entry_section1; ?>" id="input-button" rows="3" class="form-control" /><?php echo $section1; ?></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-3">
              <input type="text" name="buttonname1" value="<?php echo $buttonname1; ?>" placeholder="<?php echo $entry_buttonname1; ?>" id="input-href" class="form-control" />
            </div>
			  <div class="col-sm-3">
              <input type="text" name="icons1" value="<?php echo $icons1; ?>" placeholder="<?php echo $entry_icons1; ?>" id="input-icons1" class="form-control" />
            </div>
             <div class="col-sm-3">
              <input type="text" name="link1" value="<?php echo $link1; ?>" placeholder="<?php echo $entry_link1; ?>" id="input-href" class="form-control" />
            </div>
             <div class="col-sm-3">
              <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-3">
              <input type="text" name="buttonname2" value="<?php echo $buttonname2; ?>" placeholder="<?php echo $entry_buttonname2; ?>" id="input-href" class="form-control" />
            </div>
			  <div class="col-sm-3">
              <input type="text" name="icons2" value="<?php echo $icons2; ?>" placeholder="<?php echo $entry_icons2; ?>" id="input-icons2" class="form-control" />
            </div>
            <div class="col-sm-3">
              <input type="text" name="link2" value="<?php echo $link2; ?>" placeholder="<?php echo $entry_link2; ?>" id="input-href" class="form-control" />
            </div>
             <div class="col-sm-3">
              <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-bgcolor">按钮3</label>
            <div class="col-sm-10">
			<div class="row">
            <div class="col-sm-3">
              <input type="text" name="ttpadding" value="<?php echo $ttpadding; ?>"  placeholder="<?php echo $entry_ttpadding; ?>" id="input-ttpadding" class="form-control"  />
            </div>
            <div class="col-sm-3">
              <input type="text" name="tbpadding" value="<?php echo $tbpadding; ?>"  placeholder="<?php echo $entry_tbpadding; ?>" id="input-tbpadding" class="form-control"  />
            </div>
            <div class="col-sm-6">
              <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-12">
              <input type="text" name="title" value="<?php echo $title; ?>" placeholder="<?php echo $entry_title; ?>" id="input-title" class="form-control" />
            </div>
          </div> 
		  </div> 
		  </div> 
          <div class="form-group hidden">
            <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="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>  		  
        </form>
      </div>
    </div>
  </div>
   <script type="text/javascript" src="view/javascript/jscolor/jscolor.js"></script>
</div>
<?php echo $footer; ?>
