Exemple #1
0
if ($project['country']) {
    $cities = city::GetCities($project['country']);
}
$project['end_date'] = $_POST['end_date'] ? $_POST['end_date'] : ($project['end_date'] ? date('d-m-Y', strtotime($project['end_date'])) : '');
$project['win_date'] = $_POST['win_date'] ? $_POST['win_date'] : ($project['win_date'] ? date('d-m-Y', strtotime($project['win_date'])) : '');
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/project_exrates.php";
$oprj_exrates = new project_exrates();
$prj_exrates = $oprj_exrates->GetAll();
$professions = professions::GetAllProfessions();
array_group($professions, 'groupid');
$professions[0] = array();
?>

<?php 
$templates = array(uploader::getTemplate('uploader', 'project/'), uploader::getTemplate('uploader.file', 'project/'), uploader::getTemplate('uploader.popup', ''));
uploader::init(array('attachedfiles' => uploader::sgetLoaderOptions($uploader->resource)), $templates);
?>
<script type="text/javascript">
var draft_saved = 0;
</script>


<script type="text/javascript">

var AC=<?php 
echo $aCnt;
?>
;
var AM=<?php 
echo new_projects::MAX_FILE_COUNT;
?>