<?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">
            <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-autoplay"><?php echo $entry_autoplay; ?></label>
            <div class="col-sm-10">
              <select name="autoplay" id="input-autoplay" class="form-control">
                <?php if ($autoplay) { ?>
                <option value="1" selected="selected"><?php echo $text_yes; ?></option>
                <option value="0"><?php echo $text_no; ?></option>
                <?php } else { ?>
                <option value="1"><?php echo $text_yes; ?></option>
                <option value="0" selected="selected"><?php echo $text_no; ?></option>
                <?php } ?>
              </select>
            </div>
          </div>
		  <div class="form-group">
            <label class="col-sm-2 control-label" for="input-fade"><?php echo $entry_fade; ?></label>
            <div class="col-sm-10">
              <select name="fade" id="input-fade" class="form-control">
                <?php if ($fade) { ?>
                <option value="1" selected="selected"><?php echo $text_yes; ?></option>
                <option value="0"><?php echo $text_no; ?></option>
                <?php } else { ?>
                <option value="1"><?php echo $text_yes; ?></option>
                <option value="0" selected="selected"><?php echo $text_no; ?></option>
                <?php } ?>
              </select>
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-speed"><?php echo $entry_speed; ?></label>
            <div class="col-sm-10">
              <input type="text" name="speed" value="<?php echo $speed; ?>" placeholder="<?php echo $entry_speed; ?>" id="input-speed" class="form-control" />
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-href"><span data-toggle="tooltip" title="<?php echo $help_ocbheight; ?>"><?php echo $entry_ocbheight; ?></span></label>
			<div class="col-sm-10">
			<div class="row">
            <div class="col-sm-3">
			<div id="cp5" class="input-group colorpicker-component colorpicker-element">
			  <input type="text"  name="ocrgba" class="form-control color" placeholder="<?php echo $entry_ocrgba; ?>" id="input-ocrgba" value="<?php echo $ocrgba; ?>"/>
              <span class="input-group-addon"><i></i></span>
			</div>
			</div>
            <div class="col-sm-3">
              <input type="text" name="ocbvh" value="<?php echo $ocbvh; ?>" placeholder="<?php echo $entry_ocbvh; ?>" id="input-ocbvh" class="form-control" />
            </div>
            <div class="col-sm-3">
              <input type="text" name="ocbmh" value="<?php echo $ocbmh; ?>" placeholder="<?php echo $entry_ocbmh; ?>" id="input-ocbmh" class="form-control" />
            </div>
            <div class="col-sm-3">
              <input type="text" name="ocbpa" value="<?php echo $ocbpa; ?>" placeholder="<?php echo $entry_ocbpa; ?>" id="input-ocbpa" class="form-control" />
            </div>
            <div class="col-sm-3">
              <input type="text" name="ocbw" value="<?php echo $ocbw; ?>" placeholder="<?php echo $entry_ocbw; ?>" id="input-ocbw" class="form-control" />
            </div>
            <div class="col-sm-3">
              <input type="text" name="ocbwposition" value="<?php echo $ocbwposition; ?>" placeholder="<?php echo $entry_ocbwposition; ?>" id="input-ocbwposition" class="form-control" />
            </div>
            <div class="col-sm-3">
			<div id="cp11" class="input-group colorpicker-component colorpicker-element">
			  <input type="text"  name="bannerbgc" class="form-control color" placeholder="<?php echo $entry_bannerbgc; ?>" id="input-bannerbgc" value="<?php echo $bannerbgc; ?>"/>
              <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="bannerbgcjb" class="form-control color" placeholder="<?php echo $entry_bannerbgcjb; ?>" id="input-bannerbgcjb" value="<?php echo $bannerbgcjb; ?>"/>
              <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-rgba">标题样式</label>
            <div class="col-sm-10">
			<div class="row">
            <div class="col-sm-3">
			<div id="cp2" class="input-group colorpicker-component colorpicker-element">
			  <input type="text"  name="bgcolorcss" class="form-control color" placeholder="<?php echo $entry_bgcolorcss; ?>" id="input-bgcolorcss" value="<?php echo $bgcolorcss; ?>"/>
              <span class="input-group-addon"><i></i></span>
			</div>
			</div>
            <div class="col-sm-3">
              <input type="text" name="titleposition" value="<?php echo $titleposition; ?>" placeholder="<?php echo $entry_titleposition; ?>" id="input-titleposition" class="form-control" />
            </div>
            <div class="col-sm-3">
              <input type="text" name="titlefontsize" value="<?php echo $titlefontsize; ?>" placeholder="<?php echo $entry_titlefontsize; ?>" id="input-titlefontsize" class="form-control" />
            </div>
          </div>
		  </div>
		  </div>  
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-rgba">描述样式</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="titlecss" value="<?php echo $titlecss; ?>"  placeholder="<?php echo $entry_titlecss; ?>" id="input-titlecss" class="form-control color"  />
              <span class="input-group-addon"><i></i></span>
			  </div>
			  </div>
            <div class="col-sm-3">
			<div id="cp10" class="input-group colorpicker-component colorpicker-element">
              <input type="text" name="describebjc" value="<?php echo $describebjc; ?>"  placeholder="<?php echo $entry_describebjc; ?>" id="input-describebjc" class="form-control color"  />
              <span class="input-group-addon"><i></i></span>
			  </div>
			  </div>
            <div class="col-sm-3">
              <input type="text" name="ocbr" value="<?php echo $ocbr; ?>" placeholder="<?php echo $entry_ocbr; ?>" id="input-ocbr" class="form-control" />
            </div>
            <div class="col-sm-3">
              <input type="text" name="ocbpo" value="<?php echo $ocbpo; ?>" placeholder="<?php echo $entry_ocbpo; ?>" id="input-ocbpo" class="form-control" />
            </div>
            <div class="col-sm-3">
              <input type="text" name="ocbpowidth" value="<?php echo $ocbpowidth; ?>" placeholder="<?php echo $entry_ocbpowidth; ?>" id="input-ocbpowidth" class="form-control" />
            </div>
          </div>
		  </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 hidden">
            <label class="col-sm-2 control-label" for="input-bgcolor"><?php echo $entry_buttoncolorcss; ?></label>
            <div class="col-sm-10">
			<div class="row">
            <div class="col-sm-3">
              <input type="text" name="buttoncss" value="<?php echo $buttoncss; ?>"  placeholder="<?php echo $entry_buttoncss; ?>" id="input-buttoncss" class="color {required:false,hash:true} form-control"  />
              </div>
            <div class="col-sm-3">
              <input type="text" name="buttonbjcss" value="<?php echo $buttonbjcss; ?>"  placeholder="<?php echo $entry_buttonbjcss; ?>" id="input-buttonbjcss" class="color {required:false,hash:true} form-control"  />
              </div>
            <div class="col-sm-3">
              <input type="text" name="buttontitcss" value="<?php echo $buttontitcss; ?>"  placeholder="<?php echo $entry_buttontitcss; ?>" id="input-buttontitcss" class="color {required:false,hash:true} form-control"  />
              </div>
            <div class="col-sm-3">
              <input type="text" name="buttontithover" value="<?php echo $buttontithover; ?>"  placeholder="<?php echo $entry_buttontithover; ?>" id="input-buttontithover" class="color {required:false,hash:true} form-control"  />
              </div>
            <div class="col-sm-3">
              <input type="text" name="buttonradius" value="<?php echo $buttonradius; ?>"  placeholder="<?php echo $entry_buttonradius; ?>" id="input-buttonradius" 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-3">
              <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-3">
              <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-3">
              <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-3">
              <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-3">
              <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-3">
              <input type="text" name="buttond" value="<?php echo $buttond; ?>"  placeholder="<?php echo $entry_buttond; ?>" id="input-buttond" class="form-control"  />
              </div>
            <div class="col-sm-3">
              <input type="text" name="buttonposition" value="<?php echo $buttonposition; ?>"  placeholder="<?php echo $entry_buttonposition; ?>" id="input-buttonposition" class="form-control"  />
              </div>			  
            </div>
			</div>
          </div> 
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-box"><?php echo $entry_slidestyle; ?></label>
            <div class="col-sm-10">
			<div class="row">
            <div class="col-sm-3">
              <input type="text" name="slidewidth" value="<?php echo $slidewidth; ?>"  placeholder="<?php echo $entry_slidewidth; ?>" id="input-slidewidth" class="form-control"  />
              </div>
            <div class="col-sm-3">
              <input type="text" name="slideheight" value="<?php echo $slideheight; ?>"  placeholder="<?php echo $entry_slideheight; ?>" id="input-slideheight" class="form-control"  />
              </div>
            <div class="col-sm-3">
              <input type="text" name="slideradius" value="<?php echo $slideradius; ?>"  placeholder="<?php echo $entry_slideradius ?>" id="input-slideradius" class="form-control"  />
              </div>
            <div class="col-sm-3">
			<div id="cp20" class="input-group colorpicker-component colorpicker-element">
              <input type="text" name="slidebjcolor" value="<?php echo $slidebjcolor; ?>"  placeholder="<?php echo $entry_slidebjcolor; ?>" id="input-slidebjcolor" class="color form-control"  />
              <span class="input-group-addon"><i></i></span>
			  </div>
			  </div>
            <div class="col-sm-3">
              <input type="text" name="sliderborderw" value="<?php echo $sliderborderw; ?>"  placeholder="<?php echo $entry_sliderborderw ?>" id="input-sliderborderw" class="form-control"  />
              </div>
            <div class="col-sm-3">
			<div id="cp25" class="input-group colorpicker-component colorpicker-element">
              <input type="text" name="bjcolorafter" value="<?php echo $bjcolorafter; ?>"  placeholder="<?php echo $entry_bjcolorafter; ?>" id="input-bjcolorafter" class="color form-control"  />
              <span class="input-group-addon"><i></i></span>
			  </div>		  
            </div>
            <div class="col-sm-3">
              <input type="text" name="sliderborderrd" value="<?php echo $sliderborderrd; ?>"  placeholder="<?php echo $entry_sliderborderrd ?>" id="input-sliderborderrd" class="form-control"  />
              </div>
            <div class="col-sm-3">
              <input type="text" name="sliderborder" value="<?php echo $sliderborder; ?>"  placeholder="<?php echo $entry_sliderborder ?>" id="input-sliderborder" class="form-control"  />
              </div>
            <div class="col-sm-3">
			<div id="cp13" class="input-group colorpicker-component colorpicker-element">
              <input type="text" name="sliderhkc" value="<?php echo $sliderhkc; ?>"  placeholder="<?php echo $entry_sliderhkc; ?>" id="input-sliderhkc" class="color form-control"  />
              <span class="input-group-addon"><i></i></span>
			  </div>		  
            </div>
            <div class="col-sm-3">
              <input type="text" name="sliderpadding" value="<?php echo $sliderpadding; ?>"  placeholder="<?php echo $entry_sliderpadding ?>" id="input-sliderpadding" class="form-control"  />
              </div>			  
			</div>
			</div>
          </div> 
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-box"><?php echo $entry_slidestyletwo; ?></label>
            <div class="col-sm-10">
			<div class="row">
            <div class="col-sm-3">
              <input type="text" name="slidewidthtwo" value="<?php echo $slidewidthtwo; ?>"  placeholder="<?php echo $entry_slidewidthtwo; ?>" id="input-slidewidthtwo" class="form-control"  />
              </div>
            <div class="col-sm-3">
              <input type="text" name="slideheighttwo" value="<?php echo $slideheighttwo; ?>"  placeholder="<?php echo $entry_slideheighttwo; ?>" id="input-slideheighttwo" class="form-control"  />
              </div>
            <div class="col-sm-3">
              <input type="text" name="slidefsizetwo" value="<?php echo $slidefsizetwo; ?>"  placeholder="<?php echo $entry_slidefsizetwo ?>" id="input-slidefsizetwo" class="form-control"  />
              </div>
            <div class="col-sm-3">
              <input type="text" name="slideradiustwo" value="<?php echo $slideradiustwo; ?>"  placeholder="<?php echo $entry_slideradiustwo ?>" id="input-slideradiustwo" class="form-control"  />
              </div>
            <div class="col-sm-3">
			<div id="cp15" class="input-group colorpicker-component colorpicker-element">
              <input type="text" name="slidebackgroundtwo" value="<?php echo $slidebackgroundtwo; ?>"  placeholder="<?php echo $entry_slidebackgroundtwo; ?>" id="input-slidebackgroundtwo" class="color 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="slidecolortwo" value="<?php echo $slidecolortwo; ?>"  placeholder="<?php echo $entry_slidecolortwo; ?>" id="input-slidecolortwo" class="color form-control"  />
              <span class="input-group-addon"><i></i></span>
			  </div>		  
            </div>
            <div class="col-sm-3">
              <input type="text" name="sliderbordertwo" value="<?php echo $sliderbordertwo; ?>"  placeholder="<?php echo $entry_sliderbordertwo ?>" id="input-sliderbordertwo" class="form-control"  />
              </div>
            <div class="col-sm-3">
			<div id="cp8" class="input-group colorpicker-component colorpicker-element">
              <input type="text" name="sliderhkctwo" value="<?php echo $sliderhkctwo; ?>"  placeholder="<?php echo $entry_sliderhkctwo; ?>" id="input-sliderhkctwo" class="color form-control"  />
              <span class="input-group-addon"><i></i></span>
			  </div>		  
            </div>
            <div class="col-sm-3">
              <input type="text" name="slideformtwo" value="<?php echo $slideformtwo; ?>"  placeholder="<?php echo $entry_slideformtwo ?>" id="input-slideformtwo" 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_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" style="width: 15%;"><?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: 65%;"><?php foreach ($languages as $language) { ?>
                    <textarea name="service[<?php echo $service_row; ?>][text1][<?php echo $language['language_id']; ?>]" rows="3" placeholder="<?php echo $entry_text1; ?>" class="form-control" /><?php echo isset($service['text1'][$language['language_id']]) ? $service['text1'][$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"><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="6"></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: 15%;">';
  <?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: 65%;">';
  <?php foreach ($languages as $language) { ?>
  html += '      <textarea name="service[' + service_row + '][text1][<?php echo $language['language_id']; ?>]" value="" placeholder="<?php echo $entry_text1; ?>" rows="3" class="form-control" /></textarea>';
  <?php } ?>
  html += '  </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, #cp15, #cp20, #cp25').colorpicker({
		      format: "rgba"
		    });
		    $('#cp2, #cp3, #cp4, #cp6, #cp7, #cp8,#cp9,#cp11,#cp12,#cp13').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>