<? global $vis_language; ?>
<section id="breadcrumb" class="row m-b m-l-none m-r-none">
   <div class="col-sm-6">
      <h3 class="m-b-xs text-black"><span><? echo   $vis_language['TXTGAMIFICATION'];?><span id="total_cnt"></span></h3>
      <ul class="breadcrumb bg-empty no-border m-b-xxs no-padder">
         <li><a class="link" href="#/home/quick_view/<? echo $vis_language['TXTHOME']; ?>"><?echo $vis_language['TXTHOME'];?></a></li>
         <li><a class="link" href="#/setting/setting_menu/<? echo $vis_language['TXTSETTINGS'];?>" onclick="$('#vis_workpanel_div').visExecution('load_module','<? echo $vis_language['TXTSETTINGS'];?>',{'vis_module':'setting','vis_operation':'setting_menu'});"><? echo $vis_language['TXTSETTINGS'];?></a></li>
         <li class="active"><?  echo $vis_language['TXTGAMIFICATION']; ?></li>
      </ul>
   </div>
   <div class="col-sm-6 text-right text-left-xs m-t-lg">
   <div class="btn-group pull-right">&nbsp;
			<button class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown"><i class="vh vh-action text-muted"></i> <b class="caret"></b></button>
     <ul class="dropdown-menu dropdown-menu-right text-left">
           <li><a class="link" href="#/setting/view_quest/<? echo $vis_language['TXTQUEST']; ?>" onclick="$('#vis_workpanel_div').visExecution('load_module','<? echo $vis_language['TXTQUEST'];?>',{'vis_module':'setting','vis_operation':'view_quest'});"> <? echo $vis_language['TXTQUEST'];?></a></li>
         </ul>
   </div>
      
   </div>
</section>
<section class="padder">
   <section class="panel panel-default">
      <header class="panel-heading sub_header"><? echo $vis_language['TXTAWARDPOINT']; ?></header>
      <div class="panel-body">
         <form class="form-horizontal" id="vis_point_form" name="vis_point_form" method="post" >
            <?php foreach($point_details as $point_details)
               {
                   if($point_details['point_criteria_id'] == 4)
                   {?>
            <div class="form-group">
               <div class="col-sm-2">
                  <h5><?=$vis_language['TXTBONUSPOINT'];?></h5>
               </div>
            </div>
            <div class="line b-b line-lg pull-in"></div>
            <br>
            <?php
               }?>
            <div class="form-group">
               <label class="col-sm-2 control-label"><? echo $point_details['point_criteria']; ?></label>
               <div class="col-sm-10">
                  <input class="form-control input-sm" type="text"  name="vis_points_<?=$point_details['point_criteria_id'];?>" id="vis_points_<?=$point_details['point_criteria_id']; ?>" value="<?=$point_details['points'];?>" >
               </div>
            </div>
            <? } ?>
            <div class="form-group">
               <div class="col-sm-2">
                  <h5><? echo $vis_language['TXTSTAFFLEVEL']; ?></h5>
               </div>
            </div>
            <div class="line b-b line-lg pull-in"></div>
            <br>
             <div class="form-group">
				    <div class="col-sm-12">
            <?	if($level_details != -1) {
					foreach($level_details as $level_data) {
						if($level_data['level_id'] ==1)	{
							$level_img = '<div style="text-align:center;"><i class="vh vh-5x vh-pawn" style="cursor:context-menu;;" title="Pawn"></i></div>';
						} else if($level_data['level_id'] ==2) {
							$level_img = '<div style="text-align:center;"><i class="vh vh-5x vh-knight" style="cursor:context-menu;;"  title="Knight"></i></div>';
						} else if($level_data['level_id'] ==3) {
							$level_img = '<div style="text-align:center; " ><i class="vh vh-5x vh-bishop" style="cursor:context-menu;;"  title="Bishop" ></i></div>';
						} else if($level_data['level_id'] ==4) {
							$level_img = '<div style="text-align:center;"><i class="vh vh-5x vh-rook" style="cursor:context-menu;;"  title="Rook"></i></div>';
						} else if($level_data['level_id'] ==5) {
							$level_img = '<div style="text-align:center;"><i class="vh vh-5x vh-queen" style="cursor:context-menu;;"  title="Queen"></i></div>';
						} else if($level_data['level_id'] ==6) {
							$level_img = '<div style="text-align:center;"><i class="vh vh-5x vh-king" style="cursor:context-menu;;"  title="King"></i></div>';
						} ?>
						<div class="col-sm-2">
							<? echo $level_img ;  ?>
							<input class="form-control input-sm" type="text"  name="vis_level_<?=$level_data['level_id'];?>" id="vis_level_<?=$level_data['level_id'];?>" value="<?=$level_data['level_points'];  ?>" >
						</div>
            <?  	}
				} ?></div>
			</div>
            <div class="line b-b line-lg pull-in"></div>
            <br/>
            <div class="form-group">
               <div class="col-sm-4 col-sm-offset-2">
                  <button type="button" class="btn btn-primary" onclick="$('#vis_workpanel_div').visExecution('submit_form',{'vis_module':'setting', 'vis_operation':'update_points', 'vis_form':'vis_point_form'})"><? echo $vis_language['TXTSAVE']; ?></button>
               </div>
         </form>
         </div>
      </div>
   </section>
</section>