<?php
if (!defined('ALLOWED'))
die('Appel direct ne sont pas permis');
require_once NOALYSS_INCLUDE . '/lib/itext.class.php';
require_once NOALYSS_INCLUDE . '/lib/inum.class.php';
require_once NOALYSS_INCLUDE . '/lib/inplace_edit.class.php';
echo
h1(_(
"Test Inplace_Edit"));
$hello =
new IText(
"hello",
"Click me");
$hello->id = "hello_ajax";
$ajax_hello->set_callback("ajax_test.php");
$ajax_hello->add_json_param("TestAjaxFile", __FILE__) ;
$ajax_hello->add_json_param(
"gDossier",
Dossier::id());
echo "TEXT #".$ajax_hello->input()."#";
$select->value=$db->make_array(
"select fd_id,fd_label from fiche_def order by 2");
$ajax_select->set_callback("ajax_test.php");
$ajax_select->add_json_param("TestAjaxFile", __FILE__) ;
$ajax_select->add_json_param(
"gDossier",
Dossier::id());
echo "SELECT #".$ajax_select->input()."#";
$date->value=date(
"d.m.Y");
$date->id=uniqid(
"date");
$ajax_date->set_callback("ajax_test.php");
$ajax_date->add_json_param("TestAjaxFile", __FILE__) ;
echo "DATE #".$ajax_date->input()."#";
} else {
$ajax_hello->set_callback("ajax_test.php");
$ajax_hello->add_json_param("TestAjaxFile", __FILE__);
$ajax_hello->add_json_param(
"gDossier",
Dossier::id());
echo " [ ".$ajax_hello->ajax_input()." ] ";
}
$ajax_hello->add_json_param("TestAjaxFile", __FILE__);
$ajax_hello->add_json_param(
"gDossier",
Dossier::id());
$ajax_hello->set_value(
$http->request(
"value"));
$ajax_hello->set_callback("ajax_test.php");
echo $ajax_hello->value();
}
$ajax_hello->add_json_param("TestAjaxFile", __FILE__);
$ajax_hello->add_json_param(
"gDossier",
Dossier::id());
$ajax_hello->set_callback("ajax_test.php");
echo $ajax_hello->value();
}
}
html_page_start($p_theme="", $p_script="", $p_script2="")
Default page header for each page.
h1($p_string, $p_class="")
static id()
return the 'gDossier' value after a check
Html Input : Input a date format dd.mm.yyyy The property title should be set to indicate what it is e...
Html Input , create a tag <SELECT> ... </SELECT> if readonly == true then display the label correspon...
Inplace_edit class for ajax update of HtmlInput object.
static build($p_serialize)
build a Inplace_Edit object from a serialized string (ajax json parameter = input)