|
Revision 48, 1.4 KB
(checked in by johan, 3 years ago)
|
|
Sillaj widget!
|
| Rev | Line | |
|---|
| [48] | 1 | diff -uprN sillaj_0_2_12/getProject_xmlhttp.php sillaj/getProject_xmlhttp.php |
|---|
| 2 | --- sillaj_0_2_12/getProject_xmlhttp.php Thu Jan 1 01:00:00 1970 |
|---|
| 3 | +++ sillaj/getProject_xmlhttp.php Mon Apr 23 00:47:36 2007 |
|---|
| 4 | @@ -0,0 +1,7 @@ |
|---|
| 5 | +<?php |
|---|
| 6 | +header('Content-Type: text/javascript; charset=iso-8859-1'); |
|---|
| 7 | +require('./inc/config.php'); |
|---|
| 8 | +$project = new Project; |
|---|
| 9 | +$smarty->assign_by_ref('arrProject', $project->get()); |
|---|
| 10 | +$smarty->display('frmEvent_projOption.tpl'); |
|---|
| 11 | +?> |
|---|
| 12 | diff -uprN sillaj_0_2_12/login_xmlhttp.php sillaj/login_xmlhttp.php |
|---|
| 13 | --- sillaj_0_2_12/login_xmlhttp.php Thu Jan 1 01:00:00 1970 |
|---|
| 14 | +++ sillaj/login_xmlhttp.php Mon Apr 23 00:49:27 2007 |
|---|
| 15 | @@ -0,0 +1,9 @@ |
|---|
| 16 | +<?php |
|---|
| 17 | +header('Content-Type: text/javascript; charset=iso-8859-1'); |
|---|
| 18 | +require('./inc/config.php'); |
|---|
| 19 | +// Validate form |
|---|
| 20 | +if (count($_POST) != 0) { |
|---|
| 21 | + $user->execAuthent(false); |
|---|
| 22 | +} |
|---|
| 23 | +?> |
|---|
| 24 | +// require empty line here.. for some reason |
|---|
| 25 | diff -uprN sillaj_0_2_12/templates/default/frmEvent_projOption.tpl sillaj/templates/default/frmEvent_projOption.tpl |
|---|
| 26 | --- sillaj_0_2_12/templates/default/frmEvent_projOption.tpl Thu Jan 1 01:00:00 1970 |
|---|
| 27 | +++ sillaj/templates/default/frmEvent_projOption.tpl Sun Apr 22 23:02:56 2007 |
|---|
| 28 | @@ -0,0 +1,6 @@ |
|---|
| 29 | +{* called by getProject_xmlhttp.php *} |
|---|
| 30 | +var arrXmlhttp = new Array( |
|---|
| 31 | +{foreach key=intProjectId item=strProject name=i from=$arrProject} |
|---|
| 32 | + Array({$intProjectId}, '{$strProject|addslashes}'){if ! $smarty.foreach.i.last},{/if} |
|---|
| 33 | +{/foreach} |
|---|
| 34 | +); |
|---|