<?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-service" 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-service" class="form-horizontal">
<div class="alert alert-danger"><i class="fa fa-info-circle"></i> <?php echo $text_qq_open_signup; ?><button type="button" class="close" data-dismiss="alert">&times;</button></div>
		<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 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-sectionid"><span data-toggle="tooltip" title="" data-original-title="仅限数字，且任意模块值为唯一"><?php echo $entry_sectionid; ?></span></label>
            <div class="col-sm-10">
              <input type="text" name="sectionid" value="<?php echo $sectionid; ?>" placeholder="<?php echo $entry_sectionid; ?>" id="input-sectionid" class="form-control" />
              <?php if ($error_sectionid) { ?>
              <div class="text-danger"><?php echo $error_sectionid; ?></div>
              <?php } ?>
			</div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-sectiontab"><span data-toggle="tooltip" title="" data-original-title="适用于单页，和导航模块组合使用，如此处设置为about，导航中需设置为#about"><?php echo $entry_sectiontab; ?></span></label>
            <div class="col-sm-10">
              <input type="text" name="sectiontab" value="<?php echo $sectiontab; ?>" placeholder="<?php echo $entry_sectiontab; ?>" id="input-sectiontab" class="form-control" />
            </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="rsixlw" value="<?php echo $rsixlw; ?>" placeholder="<?php echo $entry_rsixlw; ?>" id="input-rsixlw" class="form-control" />
            </div>
			<div class="col-sm-4">
              <input type="text" name="rsixlh" value="<?php echo $rsixlh; ?>" placeholder="<?php echo $entry_rsixlh; ?>" id="input-rsixlh" class="form-control" />
            </div>
			<div class="col-sm-4">
			<div id="cp2" class="input-group colorpicker-component colorpicker-element">
              <input type="text" name="rsixlc" value="<?php echo $rsixlc; ?>" placeholder="<?php echo $entry_rsixlc; ?>" id="input-rsixlc" class="color {required:false,hash:true} form-control" />
            <span class="input-group-addon"><i></i></span>
			</div>
			</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-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-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-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-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  required">
             <label class="col-sm-2 control-label" for="input-wgdlg1"><span data-toggle="tooltip" title="<?php echo $help_wgdlg; ?>"><?php echo $entry_wgdlg; ?></span></label>
             <div class="col-sm-10">
			 <div class="row">
			 <div class="col-sm-6">
               <input type="text" name="wgdlg1" value="<?php echo $wgdlg1; ?>" placeholder="<?php echo $entry_wgdlg1; ?>" id="input-wgdlg1" class="form-control" />
              <?php if ($error_wgdlg1) { ?>
              <div class="text-danger"><?php echo $error_wgdlg1; ?></div>
              <?php } ?>
			  </div>
             <div class="col-sm-6">
               <input type="text" name="wgdlg2" value="<?php echo $wgdlg2; ?>" placeholder="<?php echo $entry_wgdlg2; ?>" id="input-wgdlg2" class="form-control" />
              <?php if ($error_wgdlg2) { ?>
              <div class="text-danger"><?php echo $error_wgdlg2; ?></div>
              <?php } ?>
			  </div>
			  </div>
			  </div>
           </div>
          <div class="form-group">
            <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" />
            </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_widthsm; ?>" 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_heightsm; ?>" 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-video"><?php echo $entry_video; ?></label>
            <div class="col-sm-10">
              <input type="text" name="video" value="<?php echo $video; ?>" placeholder="<?php echo $entry_video; ?>" id="input-video" class="form-control" />
            </div>
          </div>
		  <div class="form-group">
            <label class="col-sm-2 control-label" for="input-imagepicstyle">鼠标滑过图片样式</label>
            <div class="col-sm-10">
              <select name="imagepicstyle" id="input-imagepicstyle" class="form-control">
				<?php if ($imagepicstyle == 'none') { ?>
                <option value="none" selected="selected">默认(无样式)</option>
				<?php } else { ?>
                <option value="none">默认(无样式)</option>
				<?php } ?>
				<?php if ($imagepicstyle == 'u-block-hover__main--zoom-v1') { ?>
                <option value="u-block-hover__main--zoom-v1" selected="selected">等比例图片放大</option>
				<?php } else { ?>
				<option value="u-block-hover__main--zoom-v1">等比例图片放大</option>
                <?php } ?>
				<?php if ($imagepicstyle == 'u-block-hover__main--mover-down') { ?>
                <option value="u-block-hover__main--mover-down" selected="selected">图片从顶部缩小</option>
				<?php } else { ?>
                <option value="u-block-hover__main--mover-down">图片从顶部缩小</option>
				<?php } ?>
				<?php if ($imagepicstyle == 'u-block-hover__main--mover-up') { ?>
                <option value="u-block-hover__main--mover-up" selected="selected">图片从低部缩小</option>
				<?php } else { ?>
                <option value="u-block-hover__main--mover-up">图片从低部缩小</option>
				<?php } ?>
				<?php if ($imagepicstyle == 'u-block-hover__main--mover-right') { ?>
                <option value="u-block-hover__main--mover-right" selected="selected">图片从左滑道右边</option>
				<?php } else { ?>
                <option value="u-block-hover__main--mover-right">图片从左滑道右边</option>
				<?php } ?>
				<?php if ($imagepicstyle == 'u-block-hover__main--mover-left') { ?>
                <option value="u-block-hover__main--mover-left" selected="selected">图片从左滑道右边</option>
				<?php } else { ?>
                <option value="u-block-hover__main--mover-left">图片从右滑道左边</option>
				<?php } ?>
				<?php if ($imagepicstyle == 'u-block-hover__main--magnifier-top-right') { ?>
                <option value="u-block-hover__main--magnifier-top-right" selected="selected">图片向左下滑动</option>
				<?php } else { ?>
                <option value="u-block-hover__main--magnifier-top-right">图片向左下滑动</option>
				<?php } ?>
				<?php if ($imagepicstyle == 'u-block-hover__main--magnifier-top-left') { ?>
                <option value="u-block-hover__main--magnifier-top-left" selected="selected">图片向右下滑动</option>
				<?php } else { ?>
                <option value="u-block-hover__main--magnifier-top-left">图片向右下滑动</option>
				<?php } ?>
				<?php if ($imagepicstyle == 'u-block-hover__main--magnifier-bottom-right') { ?>
                <option value="u-block-hover__main--magnifier-bottom-right" selected="selected">图片向左上滑动</option>
				<?php } else { ?>
                <option value="u-block-hover__main--magnifier-bottom-right">图片向左上滑动</option>
				<?php } ?>
				<?php if ($imagepicstyle == 'u-block-hover__main--magnifier-bottom-left') { ?>
                <option value="u-block-hover__main--magnifier-bottom-left" selected="selected">图片向右上滑动</option>
				<?php } else { ?>
                <option value="u-block-hover__main--magnifier-bottom-left">图片向右上滑动</option>
				<?php } ?>
				<?php if ($imagepicstyle == 'g-transform-scale-1_1--parent-hover g-transition-0_3 g-transition--ease-in') { ?>
                <option value="g-transform-scale-1_1--parent-hover g-transition-0_3 g-transition--ease-in" selected="selected">图片放大样式二</option>
				<?php } else { ?>
				<option value="g-transform-scale-1_1--parent-hover g-transition-0_3 g-transition--ease-in">图片放大样式二</option>
                <?php } ?>
				<?php if ($imagepicstyle == 'g-transform-scale-1_2--parent-hover g-transition-0_3 g-transition--ease-in') { ?>
                <option value="g-transform-scale-1_2--parent-hover g-transition-0_3 g-transition--ease-in" selected="selected">图片放大样式三</option>
				<?php } else { ?>
				<option value="g-transform-scale-1_2--parent-hover g-transition-0_3 g-transition--ease-in">图片放大样式三</option>
                <?php } ?>
				<?php if ($imagepicstyle == 'u-block-hover__main--grayscale g-opacity-0_3 g-opacity-1--hover g-cursor-pointer') { ?>
                <option value="u-block-hover__main--grayscale g-opacity-0_3 g-opacity-1--hover g-cursor-pointer" selected="selected">图片灰色鼠标滑过点亮</option>
				<?php } else { ?>
				<option value="u-block-hover__main--grayscale g-opacity-0_3 g-opacity-1--hover g-cursor-pointer">图片灰色鼠标滑过点亮</option>
                <?php } ?>
				<?php if ($imagepicstyle == 'g-opacity-0_3 g-opacity-1--hover g-cursor-pointer') { ?>
                <option value="g-opacity-0_3 g-opacity-1--hover g-cursor-pointer" selected="selected">图片白色鼠标滑过点亮</option>
				<?php } else { ?>
				<option value="g-opacity-0_3 g-opacity-1--hover g-cursor-pointer">图片白色鼠标滑过点亮</option>
                <?php } ?>
				<?php if ($imagepicstyle == 'u-block-hover u-block-hover__additional--jump g-transition-0_3') { ?>
                <option value="u-block-hover u-block-hover__additional--jump g-transition-0_3" selected="selected">鼠标滑过上移</option>
				<?php } else { ?>
				<option value="u-block-hover u-block-hover__additional--jump g-transition-0_3">鼠标滑过上移</option>
                <?php } ?>
              </select>
            </div>
          </div>
		  <div class="form-group">
            <label class="col-sm-2 control-label" for="input-imganimation">图片动画特效</label>
            <div class="col-sm-10">
              <select name="imganimation" id="input-imganimation" class="form-control">
				<?php if ($imganimation == 'none') { ?>
                <option value="none" selected="selected">无特效</option>
				<?php } else { ?>
                <option value="none">无特效</option>
				<?php } ?>
				<?php if ($imganimation == 'zoomOutDown') { ?>
                <option value="zoomOutDown" selected="selected">图片抖动</option>
				<?php } else { ?>
                <option value="zoomOutDown">图片抖动</option>
				<?php } ?>
				<?php if ($imganimation == 'swing') { ?>
                <option value="swing" selected="selected">图片左右摇摆</option>
				<?php } else { ?>
				<option value="swing">图片左右摇摆</option>
                <?php } ?>
				<?php if ($imganimation == 'wobble') { ?>
                <option value="wobble" selected="selected">图片左右晃动</option>
				<?php } else { ?>
                <option value="wobble">图片左右晃动</option>
				<?php } ?>
				<?php if ($imganimation == 'rubberBand') { ?>
                <option value="rubberBand" selected="selected">图片拉伸</option>
				<?php } else { ?>
				<option value="rubberBand">图片拉伸</option>
                <?php } ?>
				<?php if ($imganimation == 'shake') { ?>
                <option value="shake" selected="selected">图片左右抖动</option>
				<?php } else { ?>
                <option value="shake">图片左右抖动</option>
				<?php } ?>
				<?php if ($imganimation == 'pulse') { ?>
                <option value="pulse" selected="selected">图片放大</option>
				<?php } else { ?>
				<option value="pulse">图片放大</option>
                <?php } ?>
				<?php if ($imganimation == 'bounce') { ?>
                <option value="bounce" selected="selected">图片弹跳</option>
				<?php } else { ?>
                <option value="bounce">图片弹跳</option>
				<?php } ?>
				<?php if ($imganimation == 'bounceIn') { ?>
                <option value="bounceIn" selected="selected">图片伸缩/option>
				<?php } else { ?>
				<option value="bounceIn">图片伸缩</option>
                <?php } ?>
				<?php if ($imganimation == 'bounceInLeft') { ?>
                <option value="bounceInLeft" selected="selected">图片从左滑向右边</option>
				<?php } else { ?>
                <option value="bounceInLeft">图片从左滑向右边</option>
				<?php } ?>
				<?php if ($imganimation == 'bounceInRight') { ?>
                <option value="bounceInRight" selected="selected">图片从右滑向左边</option>
				<?php } else { ?>
				<option value="bounceInRight">图片从右滑向左边</option>
                <?php } ?>
				<?php if ($imganimation == 'bounceInDown') { ?>
                <option value="bounceInDown" selected="selected">图片从上滑道下边</option>
				<?php } else { ?>
                <option value="bounceInDown">图片从上滑道下边</option>
				<?php } ?>
				<?php if ($imganimation == 'fadeIn') { ?>
                <option value="fadeIn" selected="selected">图片淡入</option>
				<?php } else { ?>
				<option value="fadeIn">图片淡入</option>
                <?php } ?>
				<?php if ($imganimation == 'fadeInLeft') { ?>
                <option value="fadeInLeft" selected="selected">图片从左侧淡入</option>
				<?php } else { ?>
                <option value="fadeInLeft">图片从左侧淡入</option>
				<?php } ?>
				<?php if ($imganimation == 'fadeInRight') { ?>
                <option value="fadeInRight" selected="selected">图片从右侧淡入</option>
				<?php } else { ?>
				<option value="fadeInRight">图片从右侧淡入</option>
                <?php } ?>
				<?php if ($imganimation == 'fadeInDown') { ?>
                <option value="fadeInDown" selected="selected">图片从上方淡入</option>
				<?php } else { ?>
                <option value="fadeInDown">图片从上方淡入</option>
				<?php } ?>
				<?php if ($imganimation == 'fadeInUp') { ?>
                <option value="fadeInUp" selected="selected">图片从下方淡入</option>
				<?php } else { ?>
				<option value="fadeInUp">图片从下方淡入</option>
                <?php } ?>
				<?php if ($imganimation == 'flipInX') { ?>
                <option value="flipInX" selected="selected">图片水平翻转</option>
				<?php } else { ?>
                <option value="flipInX">图片水平翻转</option>
				<?php } ?>
				<?php if ($imganimation == 'flipInY') { ?>
                <option value="flipInY" selected="selected">图片垂直翻转</option>
				<?php } else { ?>
				<option value="flipInY">图片垂直翻转</option>
                <?php } ?>
				<?php if ($imganimation == 'rotateInDownLeft') { ?>
                <option value="rotateInDownLeft" selected="selected">图片向左旋转</option>
				<?php } else { ?>
                <option value="rotateInDownLeft">图片向左旋转</option>
				<?php } ?>
				<?php if ($imganimation == 'rotateInDownRight') { ?>
                <option value="rotateInDownRight" selected="selected">图片向右旋转</option>
				<?php } else { ?>
				<option value="rotateInDownRight">图片向右旋转</option>
                <?php } ?>
				<?php if ($imganimation == 'rotateInUpLeft') { ?>
                <option value="rotateInUpLeft" selected="selected">图片向左转</option>
				<?php } else { ?>
                <option value="rotateInUpLeft">图片向左转</option>
				<?php } ?>
				<?php if ($imganimation == 'rotateInUpRight') { ?>
                <option value="rotateInUpRight" selected="selected">图片向右转</option>
				<?php } else { ?>
				<option value="rotateInUpRight">图片向右转</option>
                <?php } ?>
				<?php if ($imganimation == 'zoomIn') { ?>
                <option value="zoomIn" selected="selected">图片放大</option>
				<?php } else { ?>
                <option value="zoomIn">图片放大</option>
				<?php } ?>
				<?php if ($imganimation == 'zoomInLeft') { ?>
                <option value="zoomInLeft" selected="selected">图片从左边放大</option>
				<?php } else { ?>
				<option value="zoomInLeft">图片从左边放大</option>
                <?php } ?>
				<?php if ($imganimation == 'zoomInRight') { ?>
                <option value="zoomInRight" selected="selected">图片从右边放大</option>
				<?php } else { ?>
                <option value="zoomInRight">图片从右边放大</option>
				<?php } ?>
				<?php if ($imganimation == 'zoomInDown') { ?>
                <option value="zoomInDown" selected="selected">图片从下边放大</option>
				<?php } else { ?>
				<option value="zoomInDown">图片从下边放大</option>
                <?php } ?>
              </select>
            </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="rrsrow" value="<?php echo $rrsrow; ?>" placeholder="<?php echo $entry_rrsrow; ?>" id="input-rrsrow" class="form-control" />
            </div>
			<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="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-bgcolor"><?php echo $entry_bgcolortitle; ?></label>
            <div class="col-sm-10">
			<div class="row">
            <div class="col-sm-3">
			<div id="cp3" class="input-group colorpicker-component colorpicker-element">
              <input type="text" name="bgcolor" value="<?php echo $bgcolor; ?>"  placeholder="<?php echo $entry_bgcolor; ?>" id="input-bgcolor" class="color {required:false,hash:true} form-control"  />
              <span class="input-group-addon"><i></i></span>
			  </div>
			  </div>
            <div class="col-sm-3">
			<div id="cp4" class="input-group colorpicker-component colorpicker-element">
              <input type="text" name="bgcolorcss" value="<?php echo $bgcolorcss; ?>"  placeholder="<?php echo $entry_bgcolorcss; ?>" id="input-bgcolorcss" class="color {required:false,hash:true} form-control"  />
              <span class="input-group-addon"><i></i></span>
			  </div>
			  </div>
            <div class="col-sm-3">
			<div id="cp6" class="input-group colorpicker-component colorpicker-element">
              <input type="text" name="titlecss" value="<?php echo $titlecss; ?>"  placeholder="<?php echo $entry_titlejbcss; ?>" id="input-titlecss" class="color {required:false,hash:true} form-control"  />
              <span class="input-group-addon"><i></i></span>
			  </div>
			  </div>
            <div class="col-sm-3">
			<div id="cp7" class="input-group colorpicker-component colorpicker-element">
              <input type="text" name="titlesmcss" value="<?php echo $titlesmcss; ?>"  placeholder="<?php echo $entry_titlejbsmcss; ?>" id="input-titlesmcss" class="color {required:false,hash:true} form-control"  />
              <span class="input-group-addon"><i></i></span>
			  </div>
			  </div>
            <div class="col-sm-3">
              <input type="text" name="rlp" value="<?php echo $rlp; ?>"  placeholder="<?php echo $entry_rlp; ?>" id="input-rlp" class="form-control"  />
              </div>
            <div class="col-sm-3">
              <input type="text" name="rlb" value="<?php echo $rlb; ?>"  placeholder="<?php echo $entry_rlb; ?>" id="input-rlb" class="form-control"  />
              </div>
            <div class="col-sm-3">
              <input type="text" name="rrption" value="<?php echo $rrption; ?>"  placeholder="<?php echo $entry_rrption; ?>" id="input-rrption" class="form-control"  />
              </div>
            </div>
            </div>
          </div> 
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-bgcolor">左右布局样式</label>
            <div class="col-sm-10">
			<div class="row">
			<div class="col-sm-3">
              <input type="text" name="layoutpx" value="<?php echo $layoutpx; ?>"  placeholder="<?php echo $entry_layoutpx; ?>" id="input-layoutpx" class="form-control"  />
              </div>
            <div class="col-sm-3">
              <input type="text" name="layoutpy" value="<?php echo $layoutpy; ?>"  placeholder="<?php echo $entry_layoutpy; ?>" id="input-layoutpy" class="form-control"  />
              </div>
          </div> 
          </div> 
          </div>  	  
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-boxcolorcss"><?php echo $entry_boxcolorcss; ?></label>
            <div class="col-sm-10">
            <div class="row">
            <div class="col-sm-3">
			<div id="cp8" class="input-group colorpicker-component colorpicker-element">
              <input type="text" name="titlezwzc" value="<?php echo $titlezwzc; ?>"  placeholder="<?php echo $entry_titlezwzc; ?>" id="input-titlezwzc" class="color {required:false,hash:true} form-control"  />
              <span class="input-group-addon"><i></i></span>
			  </div>
			  </div>
            <div class="col-sm-3">
			<div id="cp9" class="input-group colorpicker-component colorpicker-element">
              <input type="text" name="tccolor" value="<?php echo $tccolor; ?>"  placeholder="<?php echo $entry_tccolor; ?>" id="input-tccolor" class="color {required:false,hash:true} form-control"  />
              <span class="input-group-addon"><i></i></span>
			  </div>
			  </div>
            <div class="col-sm-3">
			<div id="cp11" class="input-group colorpicker-component colorpicker-element">
              <input type="text" name="pricecolor" value="<?php echo $pricecolor; ?>"  placeholder="<?php echo $entry_pricecolor; ?>" id="input-pricecolor" class="color {required:false,hash:true} form-control"  />
              <span class="input-group-addon"><i></i></span>
			  </div>
			  </div>
            <div class="col-sm-3">
			<div id="cp12" class="input-group colorpicker-component colorpicker-element">
              <input type="text" name="pricetitleicolor" value="<?php echo $pricetitleicolor; ?>"  placeholder="<?php echo $entry_pricetitleicolor; ?>" id="input-pricetitleicolor" class="color {required:false,hash:true} form-control"  />
              <span class="input-group-addon"><i></i></span>
			  </div>
			  </div>
            <div class="col-sm-3">
              <input type="text" name="paddingbottom" value="<?php echo $paddingbottom; ?>"  placeholder="<?php echo $entry_paddingbottom; ?>" id="input-paddingbottom" class="form-control"  />
              </div>
              </div>
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-bgcolor">滚动文字样式</label>
            <div class="col-sm-10">
			<div class="row">
            <div class="col-sm-3">
			<div id="cp13" class="input-group colorpicker-component colorpicker-element">
              <input type="text" name="rrbigt" value="<?php echo $rrbigt; ?>"  placeholder="<?php echo $entry_rrbigt; ?>" id="input-rrbigt" class="color {required:false,hash:true} form-control"  />
              <span class="input-group-addon"><i></i></span>
			  </div>
			  </div>
            <div class="col-sm-3">
			<div id="cp14" class="input-group colorpicker-component colorpicker-element">
              <input type="text" name="rrsmt" value="<?php echo $rrsmt; ?>"  placeholder="<?php echo $entry_rrsmt; ?>" id="input-rrsmt" class="color {required:false,hash:true} form-control"  />
              <span class="input-group-addon"><i></i></span>
			  </div>
               </div>				  
            <div class="col-sm-3">
              <input type="text" name="rrmtp" value="<?php echo $rrmtp; ?>"  placeholder="<?php echo $entry_rrmtp; ?>" id="input-rrmtp" class="form-control"  />
              </div>
            <div class="col-sm-3">
              <input type="text" name="rmaxwidth" value="<?php echo $rmaxwidth; ?>"  placeholder="<?php echo $entry_rmaxwidth; ?>" id="input-rmaxwidth" class="form-control"  />
              </div>	
            <div class="col-sm-3">
              <input type="text" name="rfontsize" value="<?php echo $rfontsize; ?>"  placeholder="<?php echo $entry_rfontsize; ?>" id="input-rfontsize" class="form-control"  />
              </div>				  
            </div>
			</div>
          </div>   
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-bgcolor"><?php echo $entry_iconstyle; ?></label>
            <div class="col-sm-10">
			<div class="row">
            <div class="col-sm-3">
			<div id="cp15" class="input-group colorpicker-component colorpicker-element">
              <input type="text" name="miconbj" value="<?php echo $miconbj; ?>"  placeholder="<?php echo $entry_miconbj; ?>" id="input-miconbj" class="color {required:false,hash:true} form-control"  />
              <span class="input-group-addon"><i></i></span>
			  </div>
			  </div>
            <div class="col-sm-3">
			<div id="cp16" class="input-group colorpicker-component colorpicker-element">
              <input type="text" name="miconjbbj" value="<?php echo $miconjbbj; ?>"  placeholder="<?php echo $entry_miconjbbj; ?>" id="input-miconjbbj" class="color {required:false,hash:true} form-control"  />
              <span class="input-group-addon"><i></i></span>
			  </div>
			  </div>
            <div class="col-sm-3">
			<div id="cp17" class="input-group colorpicker-component colorpicker-element">
              <input type="text" name="miconcolor" value="<?php echo $miconcolor; ?>"  placeholder="<?php echo $entry_miconcolor; ?>" id="input-miconcolor" class="color {required:false,hash:true} form-control"  />
              <span class="input-group-addon"><i></i></span>
			  </div>
              </div>			  
            <div class="col-sm-3">
              <input type="text" name="miconround" value="<?php echo $miconround; ?>"  placeholder="<?php echo $entry_miconround; ?>" id="input-miconround" class="form-control"  />
              </div>
            <div class="col-sm-3">
              <input type="text" name="miconsize" value="<?php echo $miconsize; ?>"  placeholder="<?php echo $entry_miconsize; ?>" id="input-miconsize" class="form-control"  />
              </div>
            <div class="col-sm-3">
              <input type="text" name="miconborder" value="<?php echo $miconborder; ?>"  placeholder="<?php echo $entry_miconborder; ?>" id="input-miconborder" class="form-control"  />
              </div>
            <div class="col-sm-3">
			<div id="cp18" class="input-group colorpicker-component colorpicker-element">
              <input type="text" name="miconbc" value="<?php echo $miconbc; ?>"  placeholder="<?php echo $entry_miconbc; ?>" id="input-miconbc" class="color {required:false,hash:true} form-control"  />
              <span class="input-group-addon"><i></i></span>
			  </div>
			  </div>
            <div class="col-sm-3">
              <input type="text" name="miconwidth" value="<?php echo $miconwidth; ?>"  placeholder="<?php echo $entry_miconwidth; ?>" id="input-miconwidth" class="form-control"  />
              </div>
            <div class="col-sm-3">
              <input type="text" name="miconheight" value="<?php echo $miconheight; ?>"  placeholder="<?php echo $entry_miconheight; ?>" id="input-miconheight" class="form-control"  />
              </div>	
            <div class="col-sm-3">
              <input type="text" name="hoverbj" value="<?php echo $hoverbj; ?>"  placeholder="<?php echo $entry_hoverbj; ?>" id="input-hoverbj" class="form-control"  />
              </div>	
            <div class="col-sm-3">
              <input type="text" name="hovertit" value="<?php echo $hovertit; ?>"  placeholder="<?php echo $entry_hovertit; ?>" id="input-hovertit" class="form-control"  />
              </div>			  
            </div>
			</div>
          </div>    		  
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-namebig"><?php echo $entry_namebig; ?></label>
            <div class="col-sm-10">
              <input type="text" name="namebig" value="<?php echo $namebig; ?>"  placeholder="<?php echo $entry_namebig; ?>" id="input-namebig" class="form-control" />
              <?php if ($error_describe) { ?>
              <div class="text-danger"><?php echo $error_describe; ?></div>
              <?php } ?>
            </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_section2; ?></label>
            <div class="col-sm-10">
               <textarea name="section2" placeholder="<?php echo $entry_section2; ?>" id="input-button" rows="3" class="form-control" /><?php echo $section2; ?></textarea>
            </div>
          </div>          
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-href"><?php echo $entry_section3; ?></label>
            <div class="col-sm-10">
               <textarea name="section3" placeholder="<?php echo $entry_section3; ?>" id="input-button" rows="3" class="form-control" /><?php echo $section3; ?></textarea>
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-href"><?php echo $entry_section4; ?></label>
            <div class="col-sm-10">
               <textarea name="section4" placeholder="<?php echo $entry_section4; ?>" id="input-button" rows="3" class="form-control" /><?php echo $section4; ?></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-2">
              <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-2">
              <input type="text" name="qq1" value="<?php echo $qq1; ?>" placeholder="<?php echo $entry_qq1; ?>" id="input-qq1" class="form-control" />
            </div>
             <div class="col-sm-2">
              <input type="text" name="alww1" value="<?php echo $alww1; ?>" placeholder="<?php echo $entry_alww1; ?>" id="input-alww1" class="form-control" />
            </div>
             <div class="col-sm-2">
              <input type="text" name="link1" value="<?php echo $link1; ?>" placeholder="<?php echo $entry_link1; ?>" id="input-link1" class="form-control" />
            </div>
			  <div class="col-sm-2">
              <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-2">
              <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-2">
              <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-2">
              <input type="text" name="qq2" value="<?php echo $qq2; ?>" placeholder="<?php echo $entry_qq2; ?>" id="input-qq2" class="form-control" />
            </div>
             <div class="col-sm-2">
              <input type="text" name="alww2" value="<?php echo $alww2; ?>" placeholder="<?php echo $entry_alww2; ?>" id="input-alww2" class="form-control" />
            </div>
            <div class="col-sm-2">
              <input type="text" name="link2" value="<?php echo $link2; ?>" placeholder="<?php echo $entry_link2; ?>" id="input-link2" class="form-control" />
            </div>
			  <div class="col-sm-2">
              <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-2">
              <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-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" for="input-imgmm"><?php echo $entry_imgmm; ?></label>
            <div class="col-sm-10">
			<div class="row">
            <div class="col-sm-3">
              <input type="text" name="imground" value="<?php echo $imground; ?>"  placeholder="<?php echo $entry_imground; ?>" id="input-imground" class="form-control"  />
              </div>
            <div class="col-sm-3">
              <input type="text" name="imgthumb" value="<?php echo $imgthumb; ?>"  placeholder="<?php echo $entry_imgthumb; ?>" id="input-imgthumb" class="form-control"  />
              </div>
            <div class="col-sm-3">
              <input type="text" name="imgshadow" value="<?php echo $imgshadow; ?>"  placeholder="<?php echo $entry_imgshadow; ?>" id="input-imgshadow" class="form-control"  />
              </div>
            <div class="col-sm-3">
              <input type="text" name="imgpadding" value="<?php echo $imgpadding; ?>"  placeholder="<?php echo $entry_imgpadding; ?>" id="input-imgpadding" class="form-control"  />
              </div>
            <div class="col-sm-3">
              <input type="text" name="imgborder" value="<?php echo $imgborder; ?>"  placeholder="<?php echo $entry_imgborder; ?>" id="input-imgborder" class="form-control"  />
              </div>
            <div class="col-sm-3">
			<div id="cp19" class="input-group colorpicker-component colorpicker-element">
              <input type="text" name="imgcolor" value="<?php echo $imgcolor; ?>"  placeholder="<?php echo $entry_imgcolor; ?>" id="input-imgcolor" class="color {required:false,hash:true} form-control"  />
			  <span class="input-group-addon"><i></i></span>
			  </div>
			  </div>
            <div class="col-sm-3">
              <input type="text" name="imagewidth" value="<?php echo $imagewidth; ?>" placeholder="<?php echo $entry_imagewidth; ?>" id="input-imagewidth" class="form-control" />
			</div>
            <div class="col-sm-3">
              <input type="text" name="imageheight" value="<?php echo $imageheight; ?>" placeholder="<?php echo $entry_imageheight; ?>" id="input-imageheight" class="form-control" />
            </div>			  
            </div>
			</div>
          </div>	 		  
          <table id="images" class="table table-striped table-bordered table-hover">
            <thead>
              <tr>
                <td class="text-left"><?php echo $entry_title; ?></td>
                <td class="text-left"><?php echo $entry_text; ?></td>
                <td class="text-left"><?php echo $entry_icon; ?></td>
				<td class="text-left"><?php echo $entry_imagepng; ?></td>
                <td class="text-right"><?php echo $entry_sort_order; ?></td>
                <td></td>
              </tr>
            </thead>
            <tbody>
              <?php $service_row = 0; ?>
              <?php foreach ($services as $service) { ?>
              <tr id="service-row<?php echo $service_row; ?>">
                <td class="text-left" style="width: 20%;"><?php foreach ($languages as $language) { ?>
                    <input type="text" name="service[<?php echo $service_row; ?>][title1][<?php echo $language['language_id']; ?>]" value="<?php echo isset($service['title1'][$language['language_id']]) ? $service['title1'][$language['language_id']] : ''; ?>" placeholder="<?php echo $entry_title1; ?>" class="form-control" /> 
				  <?php if (isset($error_service[$service_row][$language['language_id']])) { ?>
                  <div class="text-danger"><?php echo $error_service[$service_row][$language['language_id']]; ?></div>
                  <?php } ?>
                  <?php } ?></td>
                <td class="text-left" style="width: 50%;"><?php foreach ($languages as $language) { ?>
                    <input type="text" name="service[<?php echo $service_row; ?>][text1][<?php echo $language['language_id']; ?>]" value="<?php echo isset($service['text1'][$language['language_id']]) ? $service['text1'][$language['language_id']] : ''; ?>" placeholder="<?php echo $entry_text1; ?>" class="form-control" /> 
				  <?php if (isset($error_service[$service_row][$language['language_id']])) { ?>
                  <div class="text-danger"><?php echo $error_service[$service_row][$language['language_id']]; ?></div>
                  <?php } ?>
                  <?php } ?></td>
                <td class="text-left" style="width: 15%;">   
                    <input type="text" name="service[<?php echo $service_row; ?>][icon1]" value="<?php echo $service['icon1']; ?>" placeholder="<?php echo $entry_icon1; ?>" class="form-control" />			
					</td>
					
                <td class="text-left"><a href="" id="thumb-image<?php echo $service_row; ?>" data-toggle="image" class="img-thumbnail"><img src="<?php echo $service['thumb']; ?>" alt="" title="" data-placeholder="<?php echo $placeholder; ?>" /></a>
                  <input type="hidden" name="service[<?php echo $service_row; ?>][image]" value="<?php echo $service['image']; ?>" id="input-image<?php echo $service_row; ?>" /></td>
				  
                <td class="text-right" style="width: 10%;"><input type="text" name="service[<?php echo $service_row; ?>][sort_order]" value="<?php echo $service['sort_order']; ?>" placeholder="<?php echo $entry_sort_order; ?>" class="form-control" /></td>
                <td class="text-left"><button type="button" onclick="$('#service-row<?php echo $service_row; ?>, .tooltip').remove();" data-toggle="tooltip" title="<?php echo $button_remove; ?>" class="btn btn-danger"><i class="fa fa-minus-circle"></i></button></td>
              </tr>
              <?php $service_row++; ?>
              <?php } ?>
            </tbody>
            <tfoot>
              <tr>
                <td colspan="5"></td>
                <td class="text-left"><button type="button" onclick="addService();" data-toggle="tooltip" title="<?php echo $button_add; ?>" class="btn btn-primary"><i class="fa fa-plus-circle"></i></button></td>
              </tr>
            </tfoot>
          </table>
        </form>
      </div>
    </div>
  </div>
</div>
<script type="text/javascript"><!--
var service_row = <?php echo $service_row; ?>;

function addService() {
  html  = '<tr id="service-row' + service_row + '">';
  html += '  <td class="text-left" style="width: 20%;">';
  <?php foreach ($languages as $language) { ?>
  html += '      <input type="text" name="service[' + service_row + '][title1][<?php echo $language['language_id']; ?>]" value="" placeholder="<?php echo $entry_title1; ?>" class="form-control" />';
  <?php } ?>
  html += '  </td>';
  html += '  <td class="text-left" style="width: 50%;">';
  <?php foreach ($languages as $language) { ?>
  html += '      <input type="text" name="service[' + service_row + '][text1][<?php echo $language['language_id']; ?>]" value="" placeholder="<?php echo $entry_text1; ?>" class="form-control" />';
  <?php } ?>
  html += '  </td>';

  html += '  <td class="text-left" style="width: 15%;"><input type="text" name="service[' + service_row + '][icon1]" value="" placeholder="<?php echo $entry_icon1; ?>" class="form-control" /></td>';
    html += '  <td class="text-left"><a href="" id="thumb-image' + service_row + '" data-toggle="image" class="img-thumbnail"><img src="<?php echo $placeholder; ?>" alt="" title="" data-placeholder="<?php echo $placeholder; ?>" /></a><input type="hidden" name="service[' + service_row + '][image]" value="" id="input-image' + service_row + '" /></td>';
  html += '  <td class="text-right" style="width: 10%;"><input type="text" name="service[' + service_row + '][sort_order]" value="" placeholder="<?php echo $entry_sort_order; ?>" class="form-control" /></td>';
  html += '  <td class="text-left"><button type="button" onclick="$(\'#service-row' + service_row  + '\').remove();" data-toggle="tooltip" title="<?php echo $button_remove; ?>" class="btn btn-danger"><i class="fa fa-minus-circle"></i></button></td>';
  html += '</tr>';

  $('#images tbody').append(html);

  service_row++;
}
//--></script>
	<script type="text/javascript">
		$(function () {
		    $('#cp5,#cp10').colorpicker({
		      format: "rgba"
		    });
		    $('#cp2, #cp3, #cp4, #cp6, #cp7, #cp8,#cp9,#cp11,#cp12,#cp13,#cp14,#cp15,#cp16,#cp17,#cp18,#cp19,#cp21,#cp22,#cp23,#cp24,#cp26').colorpicker();
		  });
	</script>
 <link href="view/javascript/colorpicker/css/bootstrap-colorpicker.min.css" rel="stylesheet">
 <script src="view/javascript/colorpicker/js/bootstrap-colorpicker.min.js"></script>
<?php echo $footer; ?>
</div>