コード例 #1
0
ファイル: profileWorkers.php プロジェクト: Neldris/Amisti
<div class="pProfileItemCon" id="pSexualOr">
<?php 
$pProfile->getSexOrient();
?>
</div>

<!--Relationship-->
<div class="pProfileItemCon" id="rRelationshipID">
<?php 
$pProfile->getRelationship();
?>
</div>

<div class="pProfileItemCon" id="pKids">
<?php 
$pProfile->getPKids();
?>

</div>

<div class="pProfileItemCon" id="pLanguage">
<?php 
$pProfile->getLanguage();
?>
</div>

<div class="pProfileItemCon" id="pReligion">
<?php 
$pProfile->getReligion();
?>
コード例 #2
0
ファイル: pProfileAjax.php プロジェクト: Neldris/Amisti
        echo $pProfile->getRelationship();
    }
}
//RELATIONSHIP ADD PROFILE
if ($_GET['relationAdd'] == true) {
    echo $pProfile->getRelationship(true);
}
//===========================  NUMBER OF CHILDREN ==============================
//NUMBER OF CHILDREN PNKIDS SAVE
if ($_GET['pNKids'] == true) {
    $pNKidsData = cleanInput(trim($_GET['pNKidsData']));
    $pProfile->setRquery("SELECT * FROM amistiPersonal WHERE userID=?", array($UID));
    $res = $pProfile->getRquery();
    if (count($res) > 0) {
        $pProfile->setRquery("UPDATE amistiPersonal SET pKids=? WHERE userID=?", array($pNKidsData, $UID));
        $pProfile->getPKids();
    } else {
        $id = autoID();
        $pProfile->setRquery("INSERT INTO amistiPersonal VALUES(?,?,?,?,?,?,?,?,?,?,?)", array($id, $UID, NULL, NULL, NULL, '', '', '', $pNKidsData, '', ''));
        $pProfile->getPKids();
    }
}
//PNEDIT OF CHILDREN
if ($_GET['pNEdit'] == true) {
    echo $pProfile->editPKids();
}
//PNDELETE CLICKED
if ($_GET['pNDelete'] == true) {
    if ($pProfile->setRquery("UPDATE amistiPersonal SET pKids=? WHERE userID=?", array(NULL, $UID))) {
        echo $pProfile->getPKids();
    }