Revisión 76
Añadido por Manu Mora Gordillo hace alrededor de 14 años
index.html | ||
---|---|---|
<script type="text/javascript" src="js/multiselect2/ui.multiselect.js"></script>
|
||
|
||
<!-- Libreria Facebook -->
|
||
<link rel="stylesheet" href="js/fcbkcomplete/style.css" type="text/css" media="screen" title="Test Stylesheet" charset="utf-8" />
|
||
<script src="js/fcbkcomplete/fcbkcomplete.js" type="text/javascript" charset="utf-8"></script>
|
||
<!-- <link rel="stylesheet" href="js/fcbkcomplete/style.css" type="text/css" media="screen" title="Test Stylesheet" charset="utf-8" />
|
||
<script src="js/fcbkcomplete/fcbkcomplete.js" type="text/javascript" charset="utf-8"></script> -->
|
||
|
||
<link rel="stylesheet" href="js/autocomplete/TextboxList.css" type="text/css" media="screen" charset="utf-8" />
|
||
<link rel="stylesheet" href="/js/autocomplete/TextboxList.Autocomplete.css" type="text/css" media="screen" charset="utf-8" />
|
||
<script src="js/autocomplete/GrowingInput.js" type="text/javascript" charset="utf-8"></script>
|
||
<script src="js/autocomplete/TextboxList.js" type="text/javascript" charset="utf-8"></script>
|
||
<script src="js/autocomplete/TextboxList.Autocomplete.js" type="text/javascript" charset="utf-8"></script>
|
||
<script src="js/autocomplete/TextboxList.Autocomplete.Binary.js" type="text/javascript" charset="utf-8"></script>
|
||
|
||
|
||
<script language="javascript">
|
||
$(function() {
|
||
$("#dialog-confirm").dialog({ autoOpen: false });
|
||
... | ... | |
$("#dialog-form").load("groups/form.html", function() {
|
||
$("#form_data #action").val("add");
|
||
$("#form_data #messageForm").html("Todos los campos son obligatorios");
|
||
|
||
var autoComplete = new $.TextboxList('#users', {unique: true, plugins: {autocomplete: {
|
||
minLength: 2,
|
||
queryRemote: true,
|
||
remote: {url: 'users?action=getAllUsers'}
|
||
}}});
|
||
});
|
||
|
||
x = ($(window).width()-250)/2;
|
||
y = ($(window).height()-400)/2;
|
||
x = ($(window).width()-500)/2;
|
||
y = ($(window).height()-500)/2;
|
||
|
||
$("#dialog-form").dialog({
|
||
resizable: false,
|
||
position: top,
|
||
modal: true,
|
||
width: 500,
|
||
title: "Añadir Grupo"
|
||
}).dialog('option', 'position', [x, y]);
|
||
}
|
||
... | ... | |
$("#dialog-form").html("");
|
||
$("#dialog-form").load("groups/form.html", function() {
|
||
|
||
$.facebooklist('#facebook-demo', '#preadded', '#facebook-auto',{url:'users',cache:1}, 10, {userfilter:1,casesensetive:0});
|
||
getAllUsers();
|
||
/*
|
||
$("#form_data #action").val("modify");
|
||
$("#form_data #user").attr("readonly","true");
|
||
$("#form_data #user").css("background-color","#DDD");
|
||
$("#form_data #messageForm").html("Todos los campos son obligatorios");
|
||
// Autocomplete with poll the server as you type
|
||
var autoComplete = new $.TextboxList('#users', {unique: true, plugins: {autocomplete: {
|
||
minLength: 2,
|
||
queryRemote: true,
|
||
remote: {url: 'users?action=getAllUsers'}
|
||
}}});
|
||
|
||
$.post('users', 'action=getUserData&user='+uid, function(data) {
|
||
var result = $.parseJSON(data);
|
||
... | ... | |
var dep = Array(result.response['groups']['departments']);
|
||
|
||
$("#form_data #type").replaceWith(textType+"<input type='hidden' id='type' name='type' value='"+result.response['type']+"'/>");
|
||
$("#form_data #name").val(result.response['name']);
|
||
}); */
|
||
$("#form_data #name").val(result.response['name']);
|
||
$("#form_data #nif").val(result.response['nif']);
|
||
$("#form_data #user").val(result.response['user']);
|
||
$("#form_data #surname").val(result.response['surname']);
|
||
|
||
$.each(result.response['groups']['departments'], function(i, l){
|
||
$('#form_data input:checkbox[value='+l+']').attr('checked', true);
|
||
});
|
||
|
||
$.each(result.response['groups']['classrooms'], function(i, l){
|
||
$('#form_data input:checkbox[value='+l+']').attr('checked', true);
|
||
});
|
||
});
|
||
//t5.add('John Doe').add('Jane Roe');
|
||
|
||
});
|
||
|
||
x = ($(window).width()-500)/2;
|
Exportar a: Unified diff
Sigo con los grupos