function progress($current, $total) { global $target_id; if ($total > 0) { $progress = (int) (100 * $current / $total); set_progress($target_id, $progress); } }
<input type="money" id="preciocosto" name="preciocosto" class="form-control" placeholder="ArtÃculo Precio Costo"> </div> <div class="form-group"> <label for="modelo">Modelo</label> <select id="modelo" name="modelo" class="form-control"> <option value="">Seleccione un modelo</option> <option value="Acer">Acer</option> <option value="HP">Hewlett Packard</option> </select> </div> </fieldset> <?php echo set_progress(); ?> </div> <div class="modal-footer"> <button class="btn btn-info btn-submit"><i class="fa fa-save"></i> Guardar</button> <button class="btn btn-default" data-dismiss="modal"><i class="fa fa-close"></i> Cancelar</button> </div> </form> </div> </div> </div>