forked from science-ation/science-ation
Update project page and status
This commit is contained in:
parent
020bebc1ab
commit
2d2b9f4ef2
@ -137,6 +137,10 @@ function emergencycontactStatus($reg_id="")
|
||||
function projectStatus($reg_id="")
|
||||
{
|
||||
global $config, $conference;
|
||||
|
||||
if($reg_id) $rid=$reg_id;
|
||||
else $rid=$_SESSION['registration_id'];
|
||||
|
||||
$required_fields=array("title","projectcategories_id","projectdivisions_id","language","summarycountok");
|
||||
|
||||
if($config['participant_short_title_enable'] == 'yes')
|
||||
@ -148,8 +152,6 @@ function projectStatus($reg_id="")
|
||||
if($config['participant_project_electricity'] == 'yes')
|
||||
$requiredFields[] = 'req_electricity';
|
||||
|
||||
if($reg_id) $rid=$reg_id;
|
||||
else $rid=$_SESSION['registration_id'];
|
||||
|
||||
$q=mysql_query("SELECT * FROM projects WHERE registrations_id='$rid' AND conferences_id='".$conference['id']."'");
|
||||
|
||||
|
@ -87,7 +87,7 @@
|
||||
|
||||
|
||||
//output the current status
|
||||
$newstatus=projectStatus();
|
||||
$newstatus=projectStatus($u['registrations_id']);
|
||||
if($newstatus!="complete")
|
||||
{
|
||||
echo error(i18n("Project Information Incomplete"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user