예제 #1
0
$array = explode(',', $anglais);
//Extraire les éléments séprés par des virgule et les mettre dans un tableau
$anglais_champs = $anglais_champs . $array[count($array) - 1] . ", ";
//recuperer le dernier élément du tableau qui correspond au niveaux
//echo "tous les niveaux".utf8_encode($niveau);
$app = new iSDK();
if ($app->cfgCon("connectionName")) {
    if (find_id_by_email($email, $app) != 0) {
        $exist = true;
        $contactLeadId = '';
    } else {
        $exist = false;
        $contactLeadId = 22;
    }
    if (is_uploaded_file($_FILES['fichiercv']['tmp_name'])) {
        $url = file_upload($filename, enlever_accents($nom), enlever_accents($prenom), $telephone1);
    }
    $contact = array("FirstName" => $nom, "LastName" => $prenom, "Email" => $email, "Phone1" => $telephone1, "Phone2" => $telephone2, "State" => $province, "StreetAddress1" => $adresse, "PostalCode" => $codepostal, "City" => $ville, "ContactNotes" => $commentaire, "Website" => $url, "ContactType" => 'ANCIA Candidat', "LeadSourceId" => $contactLeadId, "_Formation" => utf8_encode(remove_underscor($f)), "_Experienceprofessionnelle" => utf8_encode($tous_dpartement), "_Niveauhirarchique" => $niveau, "_Langue" => $anglais_champs);
    //$url_cv='http://emploi.lefebvrefortier.ca/'.file_upload($filename,$nom,$prenom,$telephone1);
    //$CID=ajoutContact($contact);
    //créer le tag pour postuler
    //check si c'est un nouveau candidat ou non
    //echo "le id". $CID = $app->addCon($contact);
    echo "<b>le id<br>" . ($CID = $app->addWithDupCheck($contact, 'Email'));
    $app->optIn($email, 'Opt in par API');
    $app->optStatus($email, 'Opt in par API');
    //debut
    //echo "initialiser". $CID = 147;
    if ($CID >= !0) {
        echo "c'est !" . $CID;
        //ajout des TAGS quand le candidat est créé:
예제 #2
0
	/**
	* Affiche le fichier flv dans un player flash.
	*/

	function showAsFlv($fullFilename){
	$haut=$this->haut;
	$large=$this->large;
	$urlmst = $this->wiki->config[url_site];
	if (!$haut) $haut = "260";
       	if (!$large) $large = "340";
	$titre=$this->desc;
	$titre=enlever_accents($titre);
	$flv_url = $this->wiki->href("download",$this->wiki->GetPageTag(),"file=$this->file");
	if (!$this->classes) {$laclass="nul";} else {$laclass=$this->classes;}
		$output =
		"<div class=\"$laclass\">\n".
		"<object type=\"application/x-shockwave-flash\" width=\"$large\" height=\"$haut\" data=\"".$urlmst."player_flv.swf?flv=$urlmst$fullFilename&amp;width=$large&amp;height=$haut&amp;bgcolor1=cccccc&amp;bgcolor2=cccccc&amp;buttoncolor=999999&amp;buttonovercolor=66FF33&amp;slidercolor1=cccccc&amp;slidercolor2=999999&amp;sliderovercolor=666666&amp;showvolume=1&amp;srt=1&amp;textcolor=0&amp;showstop=1&amp;title=$titre&amp;startimage=preview.jpg\" />\n".
		"<param name=\"movie\" value=\"".$urlmst."player_flv.swf?flv=$urlmst$fullFilename&amp;width=$large&amp;height=$haut&amp;bgcolor1=cccccc&amp;bgcolor2=cccccc&amp;buttoncolor=999999&amp;buttonovercolor=66FF33&amp;slidercolor1=cccccc&amp;slidercolor2=999999&amp;sliderovercolor=666666&amp;showvolume=1&amp;srt=1&amp;textcolor=0&amp;showstop=1&amp;title=$titre&amp;startimage=preview.jpg\" />\n".
		"<param name=\"wmode\" value=\"transparent\" />\n".
		"</object>\n".
		"<br />\n".
		"<a href=\"$flv_url\" class=\"handout_video\">T&eacute;l&eacute;charger $this->desc</a>\n";
	
		print($output);
		$this->showUpdateLink();
		echo "</div>";
	}