Ejemplo n.º 1
0
 public function login_now()
 {
     $this->use->use_lib('admin/user_lib_ad');
     $user = new user_lib_ad();
     if ($user->set(tpl_user_site::user_site() . '_' . tpl_user_site::username(), 'post') && $user->set(tpl_user_site::user_site() . '_' . tpl_user_site::password(), 'post')) {
         echo $user->find_users_login();
     } else {
         echo json_encode(array('valid' => false, 'massage' => class_massage::danger('Oops !!', 'Check Input Now ')));
     }
 }
Ejemplo n.º 2
0
                    $('#result_massages_update').html(<?php 
echo class_massage::info('title', 'massage');
?>
);
                    var $table = $('#table');
                    $table.bootstrapTable('showLoading');
                    $table.bootstrapTable('refresh');
                    var $table2 = $('#table_srudent');
                    $table2.bootstrapTable('showLoading');
                    $table2.bootstrapTable('refresh');
                    window.setTimeout(function () {
                        $('#update').modal('hide');
                    }, 2000);
                } else {
                    $('#result_massages_update').html(<?php 
echo class_massage::danger('title', 'massage');
?>
);
                }
            }).fail(function () {
            });
        });
    });
</script>
<div class="modal fade" id="add" style="background-color: rgba(60, 60, 60, 0.81);" tabindex="-1" role="dialog"
     aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog" style="width: 50%">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4>New <?php