<?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>   
		  <ul class="nav nav-tabs">
            <li class="active"><a href="#tab-general" data-toggle="tab">基础设置</a></li>
			<li><a href="#tab-serverone" data-toggle="tab">样式一</a></li>
            <li><a href="#tab-servertwo" data-toggle="tab">样式二</a></li>
          </ul>
          <div class="tab-content">
            <div class="tab-pane active" id="tab-general">
          <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="slinew" value="<?php echo $slinew; ?>" placeholder="<?php echo $entry_slinew; ?>" id="input-slinew" class="form-control" />
            </div>
			<div class="col-sm-4">
              <input type="text" name="slineh" value="<?php echo $slineh; ?>" placeholder="<?php echo $entry_slineh; ?>" id="input-slineh" class="form-control" />
            </div>
			<div class="col-sm-4">
			<div id="cp15" class="input-group colorpicker-component colorpicker-element">
              <input type="text" name="slinec" value="<?php echo $slinec; ?>" placeholder="<?php echo $entry_slinec; ?>" id="input-slinec" class="color 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" placeholder="<?php echo $entry_describe; ?>" id="input-describe" class="form-control" /><?php echo $describe; ?></textarea>
              <?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-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-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-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-bgcolor"><?php echo $entry_bgcolortitle; ?></label>
            <div class="col-sm-10">
			<div class="row">
            <div class="col-sm-2">
			<div id="cp1" 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 form-control"  />
              <span class="input-group-addon"><i></i></span>
			  </div>
			  </div>
            <div class="col-sm-2">
			<div id="cp2" 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 form-control"  />
              <span class="input-group-addon"><i></i></span>
			  </div>
			  </div>
            <div class="col-sm-2">
			<div id="cp3" 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 form-control"  />
              <span class="input-group-addon"><i></i></span>
			  </div>
			  </div>
            <div class="col-sm-2">
			<div id="cp4" class="input-group colorpicker-component colorpicker-element">
              <input type="text" name="titlesmcss" value="<?php echo $titlesmcss; ?>"  placeholder="<?php echo $entry_titlesmcss; ?>" id="input-titlesmcss" class="color form-control"  />
              <span class="input-group-addon"><i></i></span>
			  </div>
			  </div>
            <div class="col-sm-2">
              <input type="text" name="stp" value="<?php echo $stp; ?>"  placeholder="<?php echo $entry_stp; ?>" id="input-stp" class="form-control"  />
              </div>
            <div class="col-sm-2">
              <input type="text" name="sbp" value="<?php echo $sbp; ?>"  placeholder="<?php echo $entry_sbp; ?>" id="input-sbp" class="form-control"  />
              </div>
            </div>
			</div>
          </div> 
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-tuwen"><?php echo $entry_tuwen; ?></label>
            <div class="col-sm-10">
			<div class="row">
			<div class="col-sm-2">
              <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-2">
              <input type="text" name="srow" value="<?php echo $srow; ?>" placeholder="<?php echo $entry_srow; ?>" id="input-srow" class="form-control" />
            </div>
            <div class="col-sm-2">
              <input type="text" name="scroll" value="<?php echo $scroll; ?>" placeholder="<?php echo $entry_scroll; ?>" id="input-scroll" class="form-control" />
            </div>
            <div class="col-sm-2">
              <input type="text" name="strppa" value="<?php echo $strppa; ?>" placeholder="<?php echo $entry_strppa; ?>" id="input-strppa" class="form-control" />
            </div>
            <div class="col-sm-2">
              <input type="text" name="width" value="<?php echo $width; ?>" placeholder="<?php echo $entry_width; ?>" id="input-width" class="form-control" />
            </div>
            <div class="col-sm-2">
              <input type="text" name="height" value="<?php echo $height; ?>" placeholder="<?php echo $entry_height; ?>" id="input-height" class="form-control" />
            </div>
            <div class="col-sm-2">
			<div id="cp5" class="input-group colorpicker-component colorpicker-element">
              <input type="text" name="strgba" value="<?php echo $strgba; ?>" placeholder="<?php echo $entry_strgba; ?>" id="input-strgba" class="color form-control" />
            <span class="input-group-addon"><i></i></span>
			</div>
			</div>
            <div class="col-sm-2">
			<div id="cp15" class="input-group colorpicker-component colorpicker-element">
              <input type="text" name="stwzc" value="<?php echo $stwzc; ?>" placeholder="<?php echo $entry_stwzc; ?>" id="input-stwzc" class="color form-control" />
            <span class="input-group-addon"><i></i></span>
			</div>
			</div>
			</div>
			</div>
          </div>  
		  </div>
		  <div class="tab-pane" id="tab-serverone">	
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-sdtitle"><?php echo $entry_sdtitle; ?></label>
            <div class="col-sm-10">
              <input type="text" name="sdtitle" value="<?php echo $sdtitle; ?>" placeholder="<?php echo $entry_sdtitle; ?>" id="input-sdtitle" class="form-control" />
            </div>
          </div>  
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-sdone"><?php echo $entry_sdone; ?></label>
            <div class="col-sm-10">
              <textarea name="sdone" placeholder="<?php echo $entry_sdone; ?>" id="input-sdone" class="form-control" /><?php echo $sdone; ?></textarea>
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-sdtwo"><?php echo $entry_sdtwo; ?></label>
            <div class="col-sm-10">
              <textarea name="sdtwo" placeholder="<?php echo $entry_sdtwo; ?>" id="input-sdtwo" class="form-control" /><?php echo $sdtwo; ?></textarea>
            </div>
          </div>  
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-sdthree"><?php echo $entry_sdthree; ?></label>
            <div class="col-sm-10">
              <textarea name="sdthree" placeholder="<?php echo $entry_sdthree; ?>" id="input-sdthree" class="form-control" /><?php echo $sdthree; ?></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="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="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-bgcolor"><?php echo $entry_mm; ?></label>
            <div class="col-sm-10">
			<div class="row">
            <div class="col-sm-2">
			<div id="cp6" class="input-group colorpicker-component colorpicker-element">
              <input type="text" name="mtitle" value="<?php echo $mtitle; ?>"  placeholder="<?php echo $entry_mtitle ?>" id="input-mtitle" class="color form-control"  />
              <span class="input-group-addon"><i></i></span>
			  </div>
			  </div>
            <div class="col-sm-2">
			<div id="cp7" class="input-group colorpicker-component colorpicker-element">
              <input type="text" name="mdescribe" value="<?php echo $mdescribe; ?>"  placeholder="<?php echo $entry_mdescribe; ?>" id="input-mdescribe" class="color form-control"  />
              <span class="input-group-addon"><i></i></span>
			  </div>
			  </div>
            <div class="col-sm-2">
			<div id="cp8" class="input-group colorpicker-component colorpicker-element">
              <input type="text" name="mbgcolor" value="<?php echo $mbgcolor; ?>"  placeholder="<?php echo $entry_mbgcolor; ?>" id="input-mbgcolor" class="color form-control"  />
              <span class="input-group-addon"><i></i></span>
			  </div>
			  </div>
            <div class="col-sm-2">
			<div id="cp9" class="input-group colorpicker-component colorpicker-element">
              <input type="text" name="mbcolor" value="<?php echo $mbcolor; ?>"  placeholder="<?php echo $entry_mbcolor; ?>" id="input-mbcolor" class="color form-control"  />
              <span class="input-group-addon"><i></i></span>
			  </div>
			  </div>
            <div class="col-sm-2">
              <input type="text" name="npadding" value="<?php echo $npadding; ?>"  placeholder="<?php echo $entry_npadding; ?>" id="input-npadding" class="form-control"  />
              </div>
            <div class="col-sm-2">
              <input type="text" name="position" value="<?php echo $position; ?>" placeholder="<?php echo $entry_position; ?>" id="input-position" class="form-control" />
            </div>
            <div class="col-sm-2 hidden">
              <input type="text" name="mpa" value="<?php echo $mpa; ?>"  placeholder="<?php echo $entry_mpa; ?>" id="input-mpa" class="form-control"  />
              </div>
            <div class="col-sm-2 hidden">
              <input type="text" name="mborder" value="<?php echo $mborder; ?>"  placeholder="<?php echo $entry_mborder; ?>" id="input-mborder" class="form-control"  />
              </div>
            </div>
			</div>
          </div>     
          </div>
          <div class="tab-pane" id="tab-servertwo">	
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-href"><?php echo $entry_setone; ?></label>
			<div class="col-sm-10">
			<div class="row">
            <div class="col-sm-2">
              <input type="text" name="sdione" value="<?php echo $sdione; ?>" placeholder="<?php echo $entry_sdione; ?>" id="input-sdione" class="form-control" />
            </div>
            <div class="col-sm-3">
              <input type="text" name="sdtnone" value="<?php echo $sdtnone; ?>" placeholder="<?php echo $entry_sdtnone; ?>" id="input-sdtnone" class="form-control" />
            </div>
            <div class="col-sm-7">
              <input type="text" name="sddone" value="<?php echo $sddone; ?>" placeholder="<?php echo $entry_sddone; ?>" id="input-sddone" class="form-control" />
            </div>
			</div>
			</div>
          </div>  
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-href"><?php echo $entry_settwo; ?></label>
			<div class="col-sm-10">
			<div class="row">
            <div class="col-sm-2">
              <input type="text" name="sditwo" value="<?php echo $sditwo; ?>" placeholder="<?php echo $entry_sditwo; ?>" id="input-sditwo" class="form-control" />
            </div>
            <div class="col-sm-3">
              <input type="text" name="sdtntwo" value="<?php echo $sdtntwo; ?>" placeholder="<?php echo $entry_sdtntwo; ?>" id="input-sdtntwo" class="form-control" />
            </div>
            <div class="col-sm-7">
              <input type="text" name="sddtwo" value="<?php echo $sddtwo; ?>" placeholder="<?php echo $entry_sddtwo; ?>" id="input-sddtwo" class="form-control" />
            </div>
			</div>
			</div>
          </div> 
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-href"><?php echo $entry_setthree; ?></label>
			<div class="col-sm-10">
			<div class="row">
            <div class="col-sm-2">
              <input type="text" name="sdithree" value="<?php echo $sdithree; ?>" placeholder="<?php echo $entry_sdithree; ?>" id="input-sdithree" class="form-control" />
            </div>
            <div class="col-sm-3">
              <input type="text" name="sdtnthree" value="<?php echo $sdtnthree; ?>" placeholder="<?php echo $entry_sdtnthree; ?>" id="input-sdtnthree" class="form-control" />
            </div>
            <div class="col-sm-7">
              <input type="text" name="sddthree" value="<?php echo $sddthree; ?>" placeholder="<?php echo $entry_sddthree; ?>" id="input-sddthree" class="form-control" />
            </div>
			</div>
			</div>
          </div> 
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-href"><?php echo $entry_setfour; ?></label>
			<div class="col-sm-10">
			<div class="row">
            <div class="col-sm-2">
              <input type="text" name="sdifour" value="<?php echo $sdifour; ?>" placeholder="<?php echo $entry_sdifour; ?>" id="input-sdifour" class="form-control" />
            </div>
            <div class="col-sm-3">
              <input type="text" name="sdtnfour" value="<?php echo $sdtnfour; ?>" placeholder="<?php echo $entry_sdtnfour; ?>" id="input-sdtnfour" class="form-control" />
            </div>
            <div class="col-sm-7">
              <input type="text" name="sddfour" value="<?php echo $sddfour; ?>" placeholder="<?php echo $entry_sddfour; ?>" id="input-sddfour" class="form-control" />
            </div>
			</div>
			</div>
          </div> 
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-href"><?php echo $entry_setfive; ?></label>
			<div class="col-sm-10">
			<div class="row">
            <div class="col-sm-2">
              <input type="text" name="sdifive" value="<?php echo $sdifive; ?>" placeholder="<?php echo $entry_sdifive; ?>" id="input-sdifive" class="form-control" />
            </div>
            <div class="col-sm-3">
              <input type="text" name="sdtnfive" value="<?php echo $sdtnfive; ?>" placeholder="<?php echo $entry_sdtnfive; ?>" id="input-sdtnfive" class="form-control" />
            </div>
            <div class="col-sm-7">
              <input type="text" name="sddfive" value="<?php echo $sddfive; ?>" placeholder="<?php echo $entry_sddfive; ?>" id="input-sddfive" class="form-control" />
            </div>
			</div>
			</div>
          </div> 
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-href"><?php echo $entry_setsix; ?></label>
			<div class="col-sm-10">
			<div class="row">
            <div class="col-sm-2">
              <input type="text" name="sdisix" value="<?php echo $sdisix; ?>" placeholder="<?php echo $entry_sdisix; ?>" id="input-sdisix" class="form-control" />
            </div>
            <div class="col-sm-3">
              <input type="text" name="sdtnsix" value="<?php echo $sdtnsix; ?>" placeholder="<?php echo $entry_sdtnsix; ?>" id="input-sdtnsix" class="form-control" />
            </div>
            <div class="col-sm-7">
              <input type="text" name="sddsix" value="<?php echo $sddsix; ?>" placeholder="<?php echo $entry_sddsix; ?>" id="input-sddsix" class="form-control" />
            </div>
			</div>
			</div>
          </div> 
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-stcolumn"><span data-toggle="tooltip" title="<?php echo $help_stcolumn; ?>"><?php echo $entry_stcolumn; ?></span></label>
            <div class="col-sm-10">
              <input type="text" name="stcolumn" value="<?php echo $stcolumn; ?>" placeholder="<?php echo $entry_stcolumn; ?>" id="input-stcolumn" class="form-control" />
			</div>
          </div> 		  
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-stboxcolorcss"><?php echo $entry_stboxcolorcss; ?></label>
            <div class="col-sm-10">
            <div class="row">
            <div class="col-sm-2">
			<div id="cp10" class="input-group colorpicker-component colorpicker-element">
              <input type="text" name="sttccolor" value="<?php echo $sttccolor; ?>"  placeholder="<?php echo $entry_sttccolor; ?>" id="input-sttccolor" class="color form-control"  />
              <span class="input-group-addon"><i></i></span>
			  </div>
			  </div>
            <div class="col-sm-2">
			<div id="cp11" class="input-group colorpicker-component colorpicker-element">
              <input type="text" name="stpricecolor" value="<?php echo $stpricecolor; ?>"  placeholder="<?php echo $entry_stpricecolor; ?>" id="input-stpricecolor" class="color 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-stbgcolor"><?php echo $entry_sticonstyle; ?></label>
            <div class="col-sm-10">
			<div class="row">
            <div class="col-sm-2">
			<div id="cp12" class="input-group colorpicker-component colorpicker-element">
              <input type="text" name="stmiconbj" value="<?php echo $stmiconbj; ?>"  placeholder="<?php echo $entry_stmiconbj; ?>" id="input-stmiconbj" class="color form-control"  />
              <span class="input-group-addon"><i></i></span>
			  </div>
			  </div>
            <div class="col-sm-2">
			<div id="cp13" class="input-group colorpicker-component colorpicker-element">
              <input type="text" name="stmiconcolor" value="<?php echo $stmiconcolor; ?>"  placeholder="<?php echo $entry_stmiconcolor; ?>" id="input-stmiconcolor" class="color form-control"  />
              <span class="input-group-addon"><i></i></span>
			  </div>	
			  </div>
            <div class="col-sm-2">
              <input type="text" name="stmiconround" value="<?php echo $stmiconround; ?>"  placeholder="<?php echo $entry_stmiconround; ?>" id="input-stmiconround" class="form-control"  />
              </div>
            <div class="col-sm-2">
              <input type="text" name="stmiconsize" value="<?php echo $stmiconsize; ?>"  placeholder="<?php echo $entry_stmiconsize; ?>" id="input-stmiconsize" class="form-control"  />
              </div>
            <div class="col-sm-2">
              <input type="text" name="stmiconborder" value="<?php echo $stmiconborder; ?>"  placeholder="<?php echo $entry_stmiconborder; ?>" id="input-stmiconborder" class="form-control"  />
              </div>
            <div class="col-sm-2">
			<div id="cp14" class="input-group colorpicker-component colorpicker-element">
              <input type="text" name="stmiconbc" value="<?php echo $stmiconbc; ?>"  placeholder="<?php echo $entry_stmiconbc; ?>" id="input-stmiconbc" class="color form-control"  />
              <span class="input-group-addon"><i></i></span>
			  </div>
			  </div>
            <div class="col-sm-2">
              <input type="text" name="stmiconwidth" value="<?php echo $stmiconwidth; ?>"  placeholder="<?php echo $entry_stmiconwidth; ?>" id="input-stmiconwidth" class="form-control"  />
              </div>
            <div class="col-sm-2">
              <input type="text" name="stmiconheight" value="<?php echo $stmiconheight; ?>"  placeholder="<?php echo $entry_stmiconheight; ?>" id="input-stmiconheight" class="form-control"  />
              </div>				  
            </div>
			</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_link; ?></td>
                <td class="text-left"><?php echo $entry_image; ?></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"><?php foreach ($languages as $language) { ?>
                    <input type="text" name="service[<?php echo $service_row; ?>][title][<?php echo $language['language_id']; ?>]" value="<?php echo isset($service['title'][$language['language_id']]) ? $service['title'][$language['language_id']] : ''; ?>" placeholder="<?php echo $entry_title; ?>" 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: 35%;"><?php foreach ($languages as $language) { ?>
                    <textarea name="service[<?php echo $service_row; ?>][text][<?php echo $language['language_id']; ?>]" placeholder="<?php echo $entry_text; ?>" rows="5" class="form-control" /><?php echo isset($service['text'][$language['language_id']]) ? $service['text'][$language['language_id']] : ''; ?></textarea>
                  <?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: 20%;"><input type="text" name="service[<?php echo $service_row; ?>][link]" value="<?php echo $service['link']; ?>" placeholder="<?php echo $entry_link; ?>" 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">';
  <?php foreach ($languages as $language) { ?>
  html += '      <input type="text" name="service[' + service_row + '][title][<?php echo $language['language_id']; ?>]" value="" placeholder="<?php echo $entry_title; ?>" class="form-control" />';
  <?php } ?>
  html += '  </td>';
  html += '  <td class="text-left" style="width: 35%;">';
  <?php foreach ($languages as $language) { ?>
  html += '      <textarea name="service[' + service_row + '][text][<?php echo $language['language_id']; ?>]" value="" placeholder="<?php echo $entry_text; ?>"  rows="5" class="form-control" /></textarea>';
  <?php } ?>
  html += '  </td>';
  html += '  <td class="text-left" style="width: 20%;"><input type="text" name="service[' + service_row + '][link]" value="" placeholder="<?php echo $entry_link; ?>" 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').colorpicker({
		      format: "rgba"
		    });
		    $('#cp1, #cp2, #cp3, #cp4, #cp6, #cp7, #cp8, #cp9, #cp10, #cp11, #cp12, #cp13, #cp14, #cp15').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>