<? global $vis_language;
$strength="";
$strength = $strength_val = ($security_details != -1) ? $security_details[0]['content'] : 50;
if($strength>=0 && $strength<50)$strength='<span class="label vh-yellow-bg"> '.$vis_language['TXTWEAK'].' </span>';
else if($strength>=50 && $strength<70)$strength='<span class="label vh-green-bg"> '.$vis_language['TXTMEDIUM'].' </span>';
else if($strength>=70 && $strength<90)$strength='<span class="label vh-orange-bg"> '.$vis_language['TXTSTRONG'].' </span>';
else if($strength>=90 && $strength<=100)$strength='<span class="label vh-red-bg"> '.$vis_language['TXTVERYSTRONG'].' </span>';
?>
<form class="form-horizontal" data-validate="parsley" id="vis_security_password_form" name="vis_security_password_form" method="post" >
  <div class="form-group">
    <label class="col-sm-2 control-label"> <? echo $vis_language['TXTPASSWORDLENGTH']; ?></label>
    <div class="col-sm-10">
      <input class="slider slider-horizontal form-control" name="password_length" type="text" value="" data-slider-min="0" data-slider-max="100" data-slider-step="1" data-slider-value="<?php echo $strength_val;?>" data-slider-orientation="horizontal" ><script>$(".slider").slider();</script>
      <span id="strenghtresult" style="padding-left: 3%;">
      <?=$strength?>
      </span> </div>
  </div>
  <div class="line b-b line-lg pull-in"></div>
  <br/>
  <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_password_lenght', 'vis_form':'vis_security_password_form'})"><? echo $vis_language['TXTUPDATE']; ?></button>
    </div>
  </div>
</form>