web/event_form.php
changeset 988 954019f62866
child 989 e4e219f7b12c
equal deleted inserted replaced
987:18cb05f027a0 988:954019f62866
       
     1 <?php
       
     2 include_once 'common.php';
       
     3 
       
     4 $user_data = authenticate($C_event_users, $translate);
       
     5 
       
     6 ?>
       
     7 <!DOCTYPE html>
       
     8 <html lang="<?php echo($actual); ?>">
       
     9 <head>
       
    10     <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
       
    11     <title>Polemic Tweet &mdash; event form</title>
       
    12     <meta http-equiv="X-UA-Compatible" content="IE=9" />
       
    13 
       
    14     <!-- FONT -->
       
    15     <link href='<?php echo(registry_url('PT-Sans_Narrow','font'))?>' rel='stylesheet' type='text/css'>
       
    16     <link href='<?php echo(registry_url('PT-Sans','font'))?>' rel='stylesheet' type='text/css'>
       
    17     
       
    18     <!-- CSS -->
       
    19     <link rel="stylesheet" href="<?php echo(registry_url('blueprint-screen','css'));?>" type="text/css" media="screen, projection"/>
       
    20     <link rel="stylesheet" href="<?php echo(registry_url('blueprint-print','css'));?>" type="text/css" media="print"/>
       
    21     <!--[if lt IE 8]><link rel="stylesheet" href="<?php echo(registry_url('blueprint-ie','css'));?>" type="text/css" media="screen, projection"><![endif]-->
       
    22 	<link rel="stylesheet" href="<?php echo(registry_url('blueprint-plugins-fancy-type','css'));?>" type="text/css" media="screen, projection"/>
       
    23 	<link rel="stylesheet" href="<?php echo(registry_url('custom','css'));?>" type="text/css" media="screen, projection"/>
       
    24 	<link rel="stylesheet" href="<?php echo(registry_url('jquery-te','css'));?>" type="text/css" media="screen, projection"/>
       
    25 
       
    26     <!-- JAVASCRIPT -->
       
    27     <script type="text/javascript" src="<?php echo(registry_url('jquery','js'))?>"></script>
       
    28     <script type="text/javascript" src="<?php echo(registry_url('underscore','js'))?>"></script>
       
    29     <script type="text/javascript" src="<?php echo(registry_url('jquery-te','js'))?>"></script>
       
    30     
       
    31     <script type="text/javascript">
       
    32     	$(function() {
       
    33     	    $("textarea").jqte();
       
    34     	});
       
    35     </script>
       
    36 </head>
       
    37 <body>
       
    38 	<div id="sendUsFeedBack"><a href="<?php echo($C_feedback_form_url); ?>" target="_blank"><img src="<?php echo(URL_ROOT); ?>images/sendusfeedback.png"></a></div>
       
    39     <div class="container">
       
    40       <img src="images/ENMI_2010_logo.gif" class="logo">
       
    41 	  <ul class="menu">
       
    42 		  <li class="menuUnderline"><a href="<?php echo(URL_ROOT); ?>" class="menuLink">
       
    43 		  	<?php print $translate->_("Accueil"); ?></a></li>
       
    44 		  <li class="menuUnderline"><a href="<?php echo(URL_ROOT); ?>about.php" class="menuLink">
       
    45 		  	<?php print $translate->_("A propos"); ?></a></li>
       
    46 		  <li ><a href="mailto:contact@iri.centrepompidou.fr" class="menuLink" >
       
    47 		  	<?php print $translate->_("Contact"); ?></a></li>
       
    48 	  </ul>
       
    49 	  <ul class="menu">
       
    50 		  <li class="menuUnderline"><a href="<?php echo(URL_ROOT); ?>archives.php" class="menuLink">
       
    51 		  	<?php print $translate->_("Archives"); ?></a></li>
       
    52 		<?php
       
    53 		if($_SESSION['auth']) { ?>
       
    54 		  <li class="menuUnderline"><a href="<?php echo(URL_ROOT); ?>logout.php" class="menuLink">
       
    55 		  	<?php print $translate->_("Logout"); ?></a></li>
       
    56 		<?php
       
    57 		}
       
    58 		?>
       
    59 	  </ul>
       
    60 	  
       
    61 	  
       
    62 	  <ul class="menu lang" >
       
    63 	  <li class="menuUnderline"><a href="<?php echo(URL_ROOT); ?>event_form.php?lang=ja_JP" class="menuLink" >
       
    64 	       <img src='images/flag_jp.gif'<?php if($actual!="ja_JP"){echo("style='opacity: .5;'"); } ?> />
       
    65 	        <?php print $translate->_("Japonais"); ?></a></li>
       
    66 	  <li class="menuUnderline"><a href="<?php echo(URL_ROOT); ?>event_form.php?lang=fr" class="menuLink">
       
    67 	       <img src='images/flag_fr.gif' <?php if($actual!="fr"){echo("style='opacity: .5;'"); } ?> />
       
    68 	       <?php print $translate->_("Français"); ?></a></li>
       
    69 	  <li ><a href="<?php echo(URL_ROOT); ?>event_form.php?lang=en" class="menuLink">
       
    70 	       <img src='images/flag_en.gif' <?php if($actual!="en"){echo("style='opacity: .5;'"); } ?> />
       
    71 	       <?php print $translate->_("Anglais"); ?></a></li>
       
    72 	  </ul>
       
    73 	</div>
       
    74 	<div class="container">
       
    75 <?php
       
    76 	if(!isset($user_data) || isset($user_data['error'])) {
       
    77 		print "<div class=\"error-message\"><h2>".$user_data['error']."</h2></div>";
       
    78 	}
       
    79 	else {
       
    80 ?>
       
    81 		<form id="event-form" method="post" enctype="multipart/form-data" action="./event_process.php">
       
    82 			<fieldset id="event-fields">
       
    83 				<div class="event-field">
       
    84 					<label for="hashtag"><?php print $translate->_("hashtag"); ?></label>
       
    85 					<input type="text" id="hashtag" name="hashtag" alt="format: #hastag"/>
       
    86 					<div class="event-field-help"><?php print $translate->_("hashtag_help"); ?></div>
       
    87 				</div>
       
    88 				<div class="event-field">
       
    89 					<label for="title"><?php print $translate->_("title"); ?></label>
       
    90 					<input type="text" id="title" name="title" />
       
    91 					<div class="event-field-help"><?php print $translate->_("title_help"); ?></div>
       
    92 				</div>
       
    93 				<div class="event-field">
       
    94 					<label for="abstract"><?php print $translate->_("abstract");?></label>
       
    95 					<textarea name="abstract" id="abstract"></textarea>
       
    96 					<div class="event-field-help"><?php print $translate->_("abstract_help"); ?></div>
       
    97 				</div>
       
    98 				<div class="event-field">
       
    99 					<label for="description"><?php print $translate->_("description");?></label>
       
   100 					<textarea name="description" id="description"></textarea>
       
   101 					<div class="event-field-help"><?php print $translate->_("description_help"); ?></div>
       
   102 				</div>
       
   103 				<div class="event-field">
       
   104 					<label for="link"><?php print $translate->_("link");?></label>
       
   105 					<input type="text" name="link" id="link"/>
       
   106 					<div class="event-field-help"><?php print $translate->_("link_help"); ?></div>
       
   107 				</div>
       
   108 				<div class="event-field">
       
   109 					<label for="islive"><?php print $translate->_("islive");?></label>
       
   110 					<input type="checkbox" name="islive" id="islive"/>
       
   111 					<div class="event-field-help"><?php print $translate->_("islive_help"); ?></div>
       
   112 				</div>
       
   113 				<div class="event-field">
       
   114 					<label for="islive_embed"><?php print $translate->_("islive_embed");?></label>
       
   115 					<input type="text" name="islive_embed" id="islive_embed"/>
       
   116 					<div class="event-field-help"><?php print $translate->_("islive_embed_help"); ?></div>
       
   117 				</div>
       
   118 				<div class="event-field">
       
   119 					<label for="keywords"><?php print $translate->_("keywords");?></label>
       
   120 					<input type="text" name="keywords" id="keywords"/>
       
   121 					<div class="event-field-help"><?php print $translate->_("keywords_help"); ?></div>
       
   122 				</div>
       
   123 				<div class="event-field">
       
   124 					<label for="partenaires"><?php print $translate->_("partenaires");?></label>
       
   125 					<textarea name="partenaires" id="partenaires"></textarea>
       
   126 					<div class="event-field-help"><?php print $translate->_("partenaires_help"); ?></div>
       
   127 				</div>
       
   128 				<div class="event-field">
       
   129 					<label for="client_visual"><?php print $translate->_("client_visual");?></label>
       
   130 					<input type="file" name="client_visual" id="client_visual"/>
       
   131 					<div class="event-field-help"><?php print $translate->_("client_visual_help"); ?></div>
       
   132 				</div>
       
   133 				<div class="event-field">
       
   134 					<label for="head_logo"><?php print $translate->_("head_logo");?></label>
       
   135 					<input type="file" name="head_logo" id="head_logo" />
       
   136 					<div class="event-field-help"><?php print $translate->_("head_logo_help"); ?></div>
       
   137 				</div>
       
   138 				<div class="event-field">
       
   139 					<label for="slide_background"><?php print $translate->_("slide_background");?></label>
       
   140 					<input type="file" name="slide_background" id="slide_background"/>
       
   141 					<div class="event-field-help"><?php print $translate->_("slide_background_help"); ?></div>
       
   142 				</div>
       
   143 				<div class="event-field">
       
   144 					<label for="archive_img"><?php print $translate->_("archive_img");?></label>
       
   145 					<input type="file" name="archive_img" id="archive_img" />
       
   146 					<div class="event-field-help"><?php print $translate->_("archive_img_help"); ?></div>
       
   147 				</div>
       
   148 				<div class="event-field">
       
   149 					<label for="archive_title"><?php print $translate->_("archive_title");?></label>
       
   150 					<input type="text" name="archive_title" id="archive_title"/>
       
   151 					<div class="event-field-help"><?php print $translate->_("archive_title_help"); ?></div>
       
   152 				</div>
       
   153 				<div class="event-field">
       
   154 					<label for="archive_description"><?php print $translate->_("archive_description");?></label>
       
   155 					<textarea name="archive_description" id="archive_description"></textarea>
       
   156 					<div class="event-field-help"><?php print $translate->_("archive_description_help"); ?></div>
       
   157 				</div>
       
   158 			</fieldset>
       
   159 			<input type="submit"/>
       
   160 		</form>
       
   161 	<?php
       
   162 	}
       
   163 	?>
       
   164 	</div>
       
   165 </body>
       
   166 </html>