本文整理汇总了PHP中Forms::setMessage方法的典型用法代码示例。如果您正苦于以下问题:PHP Forms::setMessage方法的具体用法?PHP Forms::setMessage怎么用?PHP Forms::setMessage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Forms
的用法示例。
在下文中一共展示了Forms::setMessage方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
// print_r($_POST);
$pk_id_user = $user->updateUser($_POST['USER_NAME'], $_POST['PASSWORD'], $_POST['PK_ID_PERSON'], $_POST['PK_ID_USER'], $_POST['ROL']);
if ($pk_id_user) {
Forms::setMessage('SUCCESS', 'Transaccion Exitosa!!', 'Los datos de usario se actualizaron correctamente!');
} else {
Forms::setMessage('ERROR', 'Transaccion erronea!!', 'Los datos de usario No se actualizaron correctamente!');
}
}
break;
case 'DELETE':
$data1 = array($_GET['PK_ID_USER']);
$pk_id_person = $user->deleteUser($data1);
if ($pk_id_person > 0) {
Forms::setMessage('SUCCESS', 'Transaccion Exitosa!!', 'Los datos de usario se eliminaron correctamente!');
} else {
Forms::setMessage('ERROR', 'Transaccion erronea!!', 'Los datos de usario No se eliminaron correctamente!');
}
break;
default:
break;
}
?>
<div class="grid_10">
<div class="box round first">
<h2><?php
echo $property["pages"]["security/accounts_admin"]["SEGURIDAD_ADMIN_CUENTAS_TITLE"];
?>
</h2>
示例2: Transaction
}
Forms::setMessage('SUCCESS', $v_label["SHORT_MESSAGE_OK_EDIT"], $v_label["DETAIL_MESSAGE_OK_EDIT"]);
} else {
Forms::setMessage('ERROR', $v_label["SHORT_MESSAGE_NOOK_EDIT"], $v_label["DETAIL_MESSAGE_NOOK_EDIT"]);
}
break;
case 'DELETE':
$transaction = new Transaction($registry[$nameDataBase]);
MembershipAppForm::setDataOperationBusiness($registry[$nameDataBase]);
$idTransaction = $transaction->insertTransaction(array(MembershipAppForm::$business, MembershipAppForm::$update, MembershipAppForm::$descriptionBusiness));
$data = array($_GET['DELETE']);
$statusTransactionDB = $catalog->deleteMembershipAppForm($data, $idTransaction);
if ($statusTransactionDB > 0) {
Forms::setMessage('SUCCESS', $v_label["SHORT_MESSAGE_OK_DELETE"], $v_label["DETAIL_MESSAGE_OK_DELETE"]);
} else {
Forms::setMessage('ERROR', $v_label["SHORT_MESSAGE_NOOK_DELETE"], $v_label["DETAIL_MESSAGE_NOOK_DELETE"]);
}
break;
default:
break;
}
// Obtener lista
$list = $catalog->getListMembershipAppForm();
?>
<div class="grid_10">
<div class="box round first">
<h2><?php
echo $v_label["TITLE"];
?>
</h2>
示例3: array
</script>
<?php
$action = 'EDIT';
$pk = 0;
$data = array();
$preview_flag = 0;
$person = new Person($registry[$nameDataBase]);
$list = $person->getListPerson($_SESSION['pk_id_person']);
$data = $list[0];
// print_r($list);
$title_1 = $property["pages"]["security/my_personal_data"]["TITLE"];
if (isset($_POST['ACTION'])) {
if (1 == 1) {
Forms::setMessage('SUCCESS', 'Successful transaction!!', 'Your new personal data was updated!');
} else {
Forms::setMessage('ERROR', 'Wrong transaction!!', 'Your new personal data was not updated!');
}
}
?>
<div class="grid_10">
<div class="box round first">
<h2><?php
echo $title_1;
?>
</h2>
示例4:
$list = $user->getListUser($_SESSION['authenticated_id_user']);
// print_r($list);
$data = $list[0];
$action = 'EDIT';
$pk = $data['pk_id_user'];
if (isset($_POST['ACTION'])) {
if ($_POST['PASSWORD_OLD'] == $data['password']) {
// print_r($_POST);
$res = $user->updatePass(array($_POST['PASSWORD_1'], $_SESSION['authenticated_id_user']));
if ($res) {
Forms::setMessage('SUCCESS', 'Transaccion Exitosa!!', 'Su nuevo contraseña se actualizo corretamente!');
} else {
Forms::setMessage('ERROR', 'Transaccion Erronea!!', 'Su nuevo contraseña NO se actualizo corretamente!');
}
} else {
Forms::setMessage('ERROR', 'Transaccion Erronea!!', 'Su contraseña antgua no es correcta!!!');
}
}
?>
<h2><?php
echo 'Mi Cuenta - Cambiar mi contraseña';
?>
</h2>
<?php
include "view/wallejlla/templates/tpl_messages_1.php";
?>
示例5: foreach
}
$delete = @split(',', $_POST['bill_din_delete_array']);
//print_r($delete);
foreach ($delete as $del) {
$res = $bill->deleteBillingData(array($del), $idTransaction);
}
}
if ($statusTransactionDB > 0) {
Forms::setMessage('SUCCESS', 'Transaccion exitosa!!', 'Los Datos de la Persona se actualizaron correctamente!');
} else {
Forms::setMessage('ERROR', 'Transaccion erronea!!', 'Los datos de la persona no se pudieron actualizar!');
}
break;
case 'DELETE':
$transaction = new Transaction($registry[$nameDataBase]);
Person::setDataOperationBusiness($registry[$nameDataBase]);
$idTransaction = $transaction->insertTransaction(array(Person::$business, Person::$insert, Person::$descriptionBusiness));
$data1 = array($_GET['PK_ID_PERSON']);
$pk_id_person = $person->deletePerson($data1, $idTransaction);
if ($pk_id_person > 0) {
Forms::setMessage('SUCCESS', 'Transaccion exitosa!!', 'Los datos de la persona fueron eliminaos!');
} else {
Forms::setMessage('ERROR', 'Transaccion erronea!!', 'Los datos de la persona no se pudieron eliminar!!');
}
break;
default:
break;
}
?>
示例6: array
$resp_fk_id_teacher = $_SESSION["pk_id_teacher"];
}
if ($_SESSION["pk_id_role"] == User::ROLE_PSICOLOGO) {
$resp_fk_id_psychologist = $_SESSION["pk_id_psychologist"];
}
if ($_SESSION["pk_id_role"] == User::ROLE_TITULAR) {
$resp_fk_id_holder = $_SESSION["pk_id_holder"];
}
if ($_SESSION["pk_id_role"] == User::ROLE_SUBDIRECTOR) {
$resp_fk_id_deputy_director = $_SESSION["pk_id_deputy_director"];
}
if ($_SESSION["pk_id_role"] == User::ROLE_DIRECTOR) {
$resp_fk_id_headmaster = $_SESSION["pk_id_headmaster"];
}
if ($_SESSION["pk_id_role"] == User::ROLE_CONSEJO_ADMINISTRACION) {
$resp_fk_id_board_directors = $_SESSION["pk_id_board_directors"];
}
$data = array($_POST['response'], null, null, $_POST['pk_id_consultation'], $_POST['fk_id_query_area'], $fk_id_educational_role, $resp_fk_id_deputy_director, $resp_fk_id_psychologist, $resp_fk_id_headmaster, $resp_fk_id_board_directors, $resp_fk_id_student, $resp_fk_id_holder, $resp_fk_id_teacher, $_POST['status']);
$res = $response->insertResponse($data, $idTransaction);
$pk_id_response_satisfactorio = null;
if ($_POST['status'] == 68 && $res > 0) {
$pk_id_response_satisfactorio = $res;
}
$data = array($_POST['fk_id_query_area'], $pk_id_response_satisfactorio, $_POST['pk_id_consultation']);
$res2 = $consultation->updateConsultationAreaResponse($data, $idTransaction);
if ($res > 0) {
Forms::setMessage('SUCCESS', 'Transaccion exitosa!!', 'La respuesta se registro exitosamente!');
} else {
Forms::setMessage('ERROR', 'Transaccion erronea!!', 'Los datos de la respuesta no se pudieron registrar!');
}
}
示例7: Transaction
Forms::setMessage('SUCCESS', 'Transaccion exitosa!!', 'La actividad se actualizo exitosamente!');
} else {
Forms::setMessage('ERROR', 'Transaccion erronea!!', 'Los datos de la actividad no se pudieron actualizar!');
}
}
//ELIMINAR
if (isset($_GET['ACTION']) && $_GET['ACTION'] == 'DELETE' && isset($_GET['DELETE'])) {
$res = 0;
$transaction = new Transaction($registry[$nameDataBase]);
PlanificationActivity::setDataOperationBusiness($registry[$nameDataBase]);
$idTransaction = $transaction->insertTransaction(array(PlanificationActivity::$business, PlanificationActivity::$insert, PlanificationActivity::$descriptionBusiness));
$res = $activity->deletePlanificationActivity(array($_GET['DELETE']), $idTransaction);
if ($res > 0) {
Forms::setMessage('SUCCESS', 'Transaccion exitosa!!', 'La actividad fue eliminada correctamente!');
} else {
Forms::setMessage('ERROR', 'Transaccion erronea!!', 'Los datos de la actividad no se pueden eliminar!!!!!!');
}
}
$_SESSION['PK_ID_COURSE_HARD'] = $_GET['PK_ID_COURSE_HARD'];
//if($_SESSION['pk_id_role']==ROLE_TITULAR) $list = $activity->getListActivityByHolder($_SESSION['pk_id_holder']);
//if($_SESSION['pk_id_role']==ROLE_PROFESOR) $list = $activity->getListActivityByTeacherCourseHard($_GET['PK_ID_COURSE_HARD'],$_SESSION['pk_id_person'] );
?>
<div class="grid_10">
<div class="box round first">
<h2><?php
echo 'Actividades';
?>
</h2>
<?php
include "view/wallejlla/templates/tpl_messages_1.php";
示例8:
</tbody>
</table>
</div>
<?php
} else {
?>
<h3>
Resultados de la Busqueda de Formularios de Admision
</h3><br>
<a href="?page=admision/admision_aproval" class="button_form" >Regresar al Buscador de Formularios de Aplicacion</a>
<div class="block" style="width:90%; min-height:500px; margin-left: 15px;">
<?php
if (count($forms) == 0) {
Forms::setMessage('ERROR', $v_label["MESSAGE_SEARCH_TITLE"], $v_label["MESSAGE_SEARCH"]);
include "view/wallejlla/templates/tpl_messages_1.php";
} else {
?>
<table class="data display dataTablePlugin" id="example">
<thead>
<tr>
<th>Cod.Formulario</th>
<th>Nombre Postulante</th>
<th>Estado</th>
<th>Area Actual</th>
<th>F.Postulacion</th>
<th>F.Actualizacion</th>
<th>Opciones</th>
</tr>
</thead>
示例9: foreach
$periods = $catalog->getListAdmissionPeriod();
$periodoVigente = 0;
$datos_periodo = null;
foreach ($periods as $period) {
if ($period['periodo_vigente'] == 1) {
$periodoVigente = 1;
$datos_periodo = $period;
}
}
if ($periodoVigente == 1) {
null;
} else {
Forms::setMessage('WARNING', ' NO EXISTE UN PERIODO DE ADMISION VIGENTE!', 'Lo sentimos pero no existe un periodo de admision vigente!! ');
}
if ($periodoVigente == 1) {
Forms::setMessage('SUCCESS', 'PERIODO DE ADMISION VIGENTE!', 'Periodo de Admision: ' . $datos_periodo['school_period']);
}
if ($periodoVigente == 1) {
?>
<?php
include_once "view/wallejlla/admision/formulario.php";
} else {
?>
<div class="grid_10">
<div class="box round first">
<h2>Registro de Formulario de Admision</h2>
<?php
include "view/wallejlla/templates/tpl_messages_1.php";
示例10: array
<?php
$action = 'EDIT';
$pk = 0;
$data = array();
$user = new User($registry[$nameDataBase]);
$list = $user->getListUser($_SESSION['pk_id_user']);
// print_r($list);
$data = $list[0];
$action = 'EDIT';
$pk = $data['pk_id_user'];
if (isset($_POST['ACTION'])) {
if ($_POST['PASSWORD_OLD'] == $data['password']) {
Forms::setMessage('SUCCESS', 'Successful transaction!!', 'Your new password was updated!');
} else {
Forms::setMessage('ERROR', 'Wrong transaction!!', 'Your old password are incorrect!');
}
}
?>
<h2><?php
echo $property["pages"]["security/change_my_pass"]["TITLE"];
?>
</h2>
<?php
include "view/wallejlla/templates/tpl_messages_1.php";
?>
示例11: array
/*
fk_id_teacher, fk_id_main_course_matter, fk_id_course_hard
*/
$data = array($_POST['FK_ID_TEACHER'], $_POST['FK_ID_MAIN_COURSE_MATTER'], $_POST['PK_ID_COURSE_HARD']);
$pk_id = $matterCourse->insertAssignHCourseHardMatterTeacher($data, $idTransaction);
if ($pk_id > 0) {
Forms::setMessage('SUCCESS', 'Transaccion exitosa!!', 'Los Datos de la asignacion materia docente se guardaron correctamente!');
} else {
Forms::setMessage('ERROR', 'Transaccion erronea!!', 'Los datos de la asignacion materia docente no se pudieron guardar!');
}
}
if (isset($_POST['ACTION']) && $_POST['ACTION'] == 'EDIT' && $_POST['ENTITY'] == 'ASSIGN_MATTER_TEACHER') {
$data = array($_POST['FK_ID_TEACHER'], $_POST['FK_ID_MAIN_COURSE_MATTER'], $_POST['PK_ID_COURSE_HARD'], $_POST['PK_ID_HCOURSE_MATTER_TEACHER']);
// ECHO $_POST['PK_ID_HCOURSE_MATTER_TEACHER'];
$pk_id = $matterCourse->updateAssignHCourseHardMatterTeacher($data, $idTransaction);
if ($pk_id > 0) {
Forms::setMessage('SUCCESS', 'Transaccion exitosa!!', 'Los Datos de la asignacion materia docente se actualizaron correctamente!');
} else {
Forms::setMessage('ERROR', 'Transaccion erronea!!', 'Los datos de la asignacion materia docente no se pudieron actualizar!');
}
}
if (isset($_GET['ACTION']) && $_GET['ACTION'] == 'DELETE' && $_GET['ENTITY'] == 'ASSIGN_MATTER_TEACHER') {
$data = array($_GET['PK_ID_HCOURSE_MATTER_TEACHER']);
$pk_id = $matterCourse->deleteAssingTeacherCourseHard($data, $idTransaction);
if ($pk_id > 0) {
Forms::setMessage('SUCCESS', 'Transaccion exitosa!!', 'Los Datos de la asignacion materia docente se eliminaron correctamente!');
} else {
Forms::setMessage('ERROR', 'Transaccion erronea!!', 'Los datos de la asignacion materia docente no se pudieron eliminar!');
}
}
示例12: StudentTask
}
}
//Calificar Tarea - Profesor
if (isset($_GET['ACTION']) && $_GET['ACTION'] == 'INSERT' && isset($_GET['ENTITY']) && $_GET['ENTITY'] == 'QUALIFY') {
$res = 0;
$student_task = new StudentTask($registry[$nameDataBase]);
$transaction = new Transaction($registry[$nameDataBase]);
StudentTask::setDataOperationBusiness($registry[$nameDataBase]);
$idTransaction = $transaction->insertTransaction(array(StudentTask::$business, StudentTask::$insert, StudentTask::$descriptionBusiness));
for ($i = 0; $i < $_POST['cantidad']; $i++) {
$res = $student_task->updateStudentTask(array($_POST['score_achieved_' . $i], $_POST['pk_id_student_task_' . $i]), $idTransaction);
}
if ($res > 0) {
Forms::setMessage('SUCCESS', 'Transaccion exitosa!!', 'La Calificacion Para el Estudiante se Actualizo correctamente !');
} else {
Forms::setMessage('ERROR', 'Transaccion erronea!!', 'La Calificacion Para el Estudiante no Pudo Realizarse!');
}
}
$_SESSION['PK_ID_COURSE_HARD'] = $_GET['PK_ID_COURSE_HARD'];
?>
<div class="grid_10">
<div class="box round first">
<h2><?php
echo 'Actividades de Clase';
?>
</h2>
<?php
include "view/wallejlla/templates/tpl_messages_1.php";
?>
示例13:
}
if (count($forms) >= 1) {
if ($flag < 0) {
$message = 'Su formulario de admision no paso la evaluacion!';
Forms::setMessage('ERROR', 'FORMULARIO NO APROBADO!!', $message);
}
if ($flag == 0 && $contador == 7) {
$message = 'Su formulario de admision se APROBO, por favor contactese con la administracion para continuar,con el proceso de admision!!';
Forms::setMessage('SUCCESS', 'FORMULARIO APROBADO!!', $message);
}
if ($flag == 0 && $contador < 7) {
Forms::setMessage('SUCCESS', 'FORMULARIO EN PROCESO DE EVALUACION!!', $message);
}
} else {
$message = 'Código de formulario inexistente en el sistema de Admisiones, verifique !! ';
Forms::setMessage('ERROR', 'CODIGO DE FORMULARIO INEXISTENTE!!', $message);
}
}
?>
<SCRIPT>
$(function() {
$("#admision_review_form").validate();
$(".button_form").button();
});
</script>
<div class="grid_10">
<div class="box round first">
<h2><?php