コード例 #1
0
ファイル: profileWorkers.php プロジェクト: Neldris/Amisti
define('CURID', $_SESSION['curUserID']);
// cur user id
$pLink = "/profile?user="******"CC">
<div class="ccTop">Personal Information</div>
			 				
       <!-- profile inner -->
<div class="pProfileItemCon" id="pAgeID">
<?php 
$pProfile->getAge();
?>
</div>

<!-- Gender-->
<div class="pProfileItemCon" id="pGenderID">
<?php 
$pProfile->getGender();
?>
</div>

<!--Sex Orient-->
<div class="pProfileItemCon" id="pSexualOr">
<?php 
$pProfile->getSexOrient();
?>
コード例 #2
0
ファイル: pProfileAjax.php プロジェクト: Neldris/Amisti
    }
    echo $pProfile->getSaveAge();
}
//EDIT AGE
if ($_GET['ageEdit'] == true) {
    echo $pProfile->editAge();
}
//AGE DELETE
if ($_GET['ageDelete'] == true) {
    if ($pProfile->setRquery("UPDATE amistiPersonal SET pDOBD=?, pDOBM=?, pDOBY=? WHERE userID=?", array(NULL, NULL, NULL, $UID))) {
        echo $pProfile->editAge();
    }
}
//AGE ADD PROFILE
if ($_GET['ageAdd'] == true) {
    echo $pProfile->getAge(true);
}
//===================GENDER OPERATIONS =============================
$genderArray = array("Male", "Female", "Transgender");
//GENDER INPUT KEYUP
if ($_GET['genderType'] == true) {
    $gData = trim($_GET['genderData']);
    for ($x = 0; $x < count($genderArray); $x++) {
        if (startsWith($genderArray[$x], $gData)) {
            ?>
		 <li class="genderPick"> <?php 
            echo $genderArray[$x];
            ?>
</li>
		 <?php 
        }