php js css php js css

Changes

Changes to Page: student-profile

33038
Today 5:07am
Vendeville, Mathieu
Modified page
Can't Undo: The page /2019-test/student-profile/ does not currently exist, it may have been moved or deleted. In order to undo this change, you first need to restore the page
33044
Today 5:07am
Vendeville, Mathieu
Modified page
Can't Undo: The page /2019-test/student-profile/ does not currently exist, it may have been moved or deleted. In order to undo this change, you first need to restore the page
Php Source:
Id:
/2019-test/student-profile/
/2019-test/student-profile/
Title:
Student Profile
Student Profile
Content:
<ss:logic:if test="\Components\Customers\Contacts::currentIsLoggedIn()">
<ss:logic:variable value="\Components\Customers\Contacts::current()" as="contact" parsenow="value"/>
<ss:forms:dialogbox id="edit_profile" width="60%">
<h3 class="text-center">Edit your profile</h3>
<ss:forms:form class="margin-top40" componentkey="\Components\Customers\Contacts::currentContactId()" component="\Components\Customers\Contacts" controlssubmit="true" parsenow="componentkey" onsubmitredirect="/2019-test/student-profile/">
<ss:forms:row description="Close portrait photos and logos work best." label="Display Picture">
<ss:forms:fileuploadimage datacolumn="contact_picture" id="contact_picture" uploadLimit="2MB" />
</ss:forms:row>
<ss:forms:row description="NOTE: Changing this will alter your login." label="E-mail Address">
<ss:forms:editbox id="contact_email" datacolumn="contact_email" validations="mandatory" />
<ss:logic:if test="$contact['contact_email_secondary']">
<div id="contact_email_secondary_edit" style="display: block">
<ss:forms:editbox id="contact_email_secondary" datacolumn="contact_email_secondary" autocomplete="off" />
<small id="contact_email_secondary_cc_container" style="display: inline">
<ss:forms:checkbox id="contact_email_secondary_cc" label="CC to this e-mail." datacolumn="contact_email_secondary_cc" value="$contact['contact_email_secondary']" parsenow="value"/>
</small>
</div>
</ss:logic:if>
<ss:logic:else>
<div id="contact_email_secondary_noedit">
<a onclick="document.getElementById('contact_email_secondary_noedit').style.display = 'none'; document.getElementById('contact_email_secondary_edit').style.display = 'block'; document.getElementById('contact_email_secondary').focus(); document.getElementById('contact_email_secondary_cc_container').style.display = 'inline'; return false;" href="#">Add secondary e-mail address</a>
</div>
<div id="contact_email_secondary_edit" style="display: none">
<ss:forms:editbox id="contact_email_secondary" datacolumn="contact_email_secondary" autocomplete="off" />
<small id="contact_email_secondary_cc_container" style="display: none">
<ss:forms:checkbox id="contact_email_secondary_cc" label="CC to this e-mail." datacolumn="contact_email_secondary_cc" value="$contact['contact_email_secondary']" parsenow="value"/>
</small>
</div>
</ss:logic:else>
</ss:forms:row>
<ss:forms:row description="Enter a password greater than 4 characters" label="Password">
<ss:logic:if test="\Components\Customers\Contacts\Passwords::getIsSetForContact($contact['contact_id'])">
<div id="contact_password_noedit">
You already have a password set.
<a onclick="document.getElementById('contact_password_noedit').style.display = 'none'; document.getElementById('contact_password_edit').style.display = 'block'; document.getElementById('contact_password').focus(); return false;" href="#">Click here to change it</a>.
</div>
<div id="contact_password_edit" style="display: none">
<ss:forms:password id="contact_password" datacolumn="contact_password" />
</div>
</ss:logic:if>
<ss:logic:else>
<ss:forms:password id="contact_password" datacolumn="contact_password" />
</ss:logic:else>
</ss:forms:row>
<ss:forms:row description="Enter a name that other users can identify you by." label="Display Name">
<ss:forms:editbox id="contact_username" value="\Components\Customers\Contacts::currentSuggestUsername()" parse="value" datacolumn="contact_username" />
</ss:forms:row>

<ss:forms:row label="Type">
<ss:ajax:event id="contact_type_ajaxevent" updatecontrols="contact_type_ajaxregion" />
<ss:forms:radiobutton id="contact_type_individual" onclickajax="contact_type_ajaxevent" datacolumn="contact_type" name="contact_type" label="Individual" valuechecked="Individual" value="Individual" />&nbsp;
<ss:forms:radiobutton id="contact_type_company" onclickajax="contact_type_ajaxevent" datacolumn="contact_type" name="contact_type" label="Company" valuechecked="Company" value="Individual" />
</ss:forms:row>

<ss:ajax:region id="contact_type_ajaxregion">
<ss:logic:if test="$contact_type_individual.checked" evaluateat="render">
<ss:forms:row label="First and Last Name">
<ss:forms:combobox id="contact_title" title="Title" value="" datacolumn="contact_title">
<ss:forms:option value="" selected="" />
<ss:forms:option value="Mr.">Mr.</ss:forms:option>
<ss:forms:option value="Mrs.">Mrs.</ss:forms:option>
<ss:forms:option value="Miss">Miss</ss:forms:option>
<ss:forms:option value="Ms.">Ms.</ss:forms:option>
<ss:forms:option value="Dr.">Doctor</ss:forms:option>
</ss:forms:combobox>
<ss:forms:editbox id="contact_first_name" datacolumn="contact_first_name" width="100" placeholder="First name" />
<ss:forms:editbox id="contact_last_name" datacolumn="contact_last_name" width="120" placeholder="Last name" />
</ss:forms:row>
</ss:logic:if>
<ss:logic:else>
<ss:forms:row label="Company">
<ss:forms:editbox id="contact_company" datacolumn="contact_company" />
</ss:forms:row>
<ss:forms:row label="Company Number">
<ss:forms:combobox id="contact_company_number_type" datacolumn="contact_company_number_type" datasource="\Framework\I18N\CompanyTypes::getAll()" as="companytype" datavalue="$companytype['company_number_type']" datatitle="$companytype['company_number_type']">
<ss:forms:option value=""></ss:forms:option>
</ss:forms:combobox>
<ss:forms:editbox id="contact_company_number" datacolumn="contact_company_number" />
</ss:forms:row>
</ss:logic:else>
</ss:ajax:region>

<ss:logic:variable value="\Framework\HTTP\Request::getCountryCodeFromIP()" parsenow="value" as="ipcountry" />
<ss:forms:row description="Street Address" label="Address">
<ss:forms:textarea id="contact_address" datacolumn="contact_address" rows="2" maxlength="30" />
</ss:forms:row>
<ss:forms:row label="Suburb / City">
<ss:forms:editbox id="contact_suburb_city" datacolumn="contact_suburb_city" />
</ss:forms:row>
<ss:forms:row label="Postcode">
<ss:forms:editbox id="contact_postcode" datacolumn="contact_postcode" width="80" />
</ss:forms:row>
<ss:forms:row label="State">
<ss:forms:editbox id="contact_state" datacolumn="contact_state" autocompletedatasource="\Framework\I18N\Countries::getStateTitlesFlat($ipcountry)" />
</ss:forms:row>
<ss:forms:row label="Country">
<ss:forms:combobox id="country_id" value="$ipcountry" parsenow="value" as="country" datacolumn="country_id" datasource="\Framework\I18N\Countries::getAll()" datatitle="$country['country_title']" datavalue="$country['country_id']" />
</ss:forms:row>
<ss:forms:row label="Home Phone">
<ss:forms:editbox id="contact_phone_home" datacolumn="contact_phone_home" />
</ss:forms:row>
<ss:forms:row label="Work Phone">
<ss:forms:editbox id="contact_phone_work" datacolumn="contact_phone_work" />
</ss:forms:row>
<ss:forms:row label="Mobile Phone">
<ss:forms:editbox id="contact_phone_mobile" datacolumn="contact_phone_mobile" />
</ss:forms:row>
<ss:forms:row label="Gender">
<ss:forms:radiobutton id="contact_gender_m" label="Male" datacolumn="contact_gender" name="contact_gender" valuechecked="m" />&nbsp;
<ss:forms:radiobutton id="contact_gender_f" label="Female" datacolumn="contact_gender" name="contact_gender" valuechecked="f" />
</ss:forms:row>
<ss:forms:row description="Format: DD / MM / YYYY" label="Date of Birth">
<ss:forms:editbox id="contact_dob_d" value="substr($contact['contact_dob'], 8)" parse="value" datacolumn="contact_dob_d" width="50" />&nbsp;/
<ss:forms:editbox id="contact_dob_m" value="substr($contact['contact_dob'], 5, 2)" parse="value" datacolumn="contact_dob_m" width="50" />&nbsp;/
<ss:forms:editbox id="contact_dob_y" value="substr($contact['contact_dob'], 0, 4)" parse="value" datacolumn="contact_dob_y" width="80" />
</ss:forms:row>
<ss:forms:row label="Company Name">
<ss:forms:editbox id="contact_company" datacolumn="contact_company" />
</ss:forms:row>
<ss:synergy8:customfieldsrenderer parsenow="fields" fields="\Components\Customers\Contacts::fieldsCustomGetAllExt(true)" />
<div class="text-center margin-top20"><ss:forms:submitbutton value="Submit" /></div>
</ss:forms:form>
</ss:forms:dialogbox>
<ss:templates:row class="margin-top40">
<ss:templates:column width="3" class="text-center">
<ss:logic:if test="$contact['contact_picture']">
<ss:standard:image src="'/media/customers_contacts/' + $contact['contact_id'] + '/' + $contact['contact_picture']" alt="" width="200" height="200" maintainaspect="true" parsenow="src" class="img-circle"/>
</ss:logic:if>
<ss:logic:else>
<ss:standard:image src="/2019-test/student-profile/our-team-male.jpg" alt="default image" width="200" height="200" maintainaspect="true" class="img-circle"/>
</ss:logic:else>
<br/>
<ss:standard:link opendialogid="edit_profile" class="turquoiseborder margin-top20">Edit your profile</ss:standard:link>


</ss:templates:column>
<ss:templates:column width="9">
<h3>
Bonjour
<ss:logic:if test="$contact['contact_first_name']">[? $contact['contact_first_name'] ?]</ss:logic:if>
</h3>
<h4>Welcome to the Alliance Française</h4>
<br/>
<p>Your email: [? $contact['contact_email'] ?]</p>
</ss:templates:column>
</ss:templates:row>

<hr/>
<h3 class="text-center">Your upcoming classes</h3>

<hr/>

<ss:logic:variable value="\Components\AF\Courses::getAll()" datafilter="array(array('product_id', '=' , '5'))" parsenow="value,datafilter" as="course"/>
[? varDump($course) ?]
<hr/>

<ss:logic:variable value="getcourses()" as="course2"/>
[? varDump($course2) ?]
<hr/>

<ss:data:repeater as="contactSale" emptymessage="No previous sales found." datasource="getAllContactSales()">
<p>[? $contactSale['sale_id'] ?]</p>
<ss:data:repeater as="contactSaleItem" emptymessage="No previous sales found." datasource="\Components\Commerce\Sales\Items::getAllForSale($contactSale['sale_id'])" >
<p>[? $contactSaleItem['sale_item_id'] ?], [? $contactSaleItem['sale_item_title'] ?], productID = [? $contactSaleItem['product_id'] ?]</p>

</ss:data:repeater>

</ss:data:repeater>

</ss:logic:if>
<ss:logic:if test="\Components\Customers\Contacts::currentIsLoggedIn()">
<ss:logic:variable value="\Components\Customers\Contacts::current()" as="contact" parsenow="value"/>
<ss:forms:dialogbox id="edit_profile" width="60%">
<h3 class="text-center">Edit your profile</h3>
<ss:forms:form class="margin-top40" componentkey="\Components\Customers\Contacts::currentContactId()" component="\Components\Customers\Contacts" controlssubmit="true" parsenow="componentkey" onsubmitredirect="/2019-test/student-profile/">
<ss:forms:row description="Close portrait photos and logos work best." label="Display Picture">
<ss:forms:fileuploadimage datacolumn="contact_picture" id="contact_picture" uploadLimit="2MB" />
</ss:forms:row>
<ss:forms:row description="NOTE: Changing this will alter your login." label="E-mail Address">
<ss:forms:editbox id="contact_email" datacolumn="contact_email" validations="mandatory" />
<ss:logic:if test="$contact['contact_email_secondary']">
<div id="contact_email_secondary_edit" style="display: block">
<ss:forms:editbox id="contact_email_secondary" datacolumn="contact_email_secondary" autocomplete="off" />
<small id="contact_email_secondary_cc_container" style="display: inline">
<ss:forms:checkbox id="contact_email_secondary_cc" label="CC to this e-mail." datacolumn="contact_email_secondary_cc" value="$contact['contact_email_secondary']" parsenow="value"/>
</small>
</div>
</ss:logic:if>
<ss:logic:else>
<div id="contact_email_secondary_noedit">
<a onclick="document.getElementById('contact_email_secondary_noedit').style.display = 'none'; document.getElementById('contact_email_secondary_edit').style.display = 'block'; document.getElementById('contact_email_secondary').focus(); document.getElementById('contact_email_secondary_cc_container').style.display = 'inline'; return false;" href="#">Add secondary e-mail address</a>
</div>
<div id="contact_email_secondary_edit" style="display: none">
<ss:forms:editbox id="contact_email_secondary" datacolumn="contact_email_secondary" autocomplete="off" />
<small id="contact_email_secondary_cc_container" style="display: none">
<ss:forms:checkbox id="contact_email_secondary_cc" label="CC to this e-mail." datacolumn="contact_email_secondary_cc" value="$contact['contact_email_secondary']" parsenow="value"/>
</small>
</div>
</ss:logic:else>
</ss:forms:row>
<ss:forms:row description="Enter a password greater than 4 characters" label="Password">
<ss:logic:if test="\Components\Customers\Contacts\Passwords::getIsSetForContact($contact['contact_id'])">
<div id="contact_password_noedit">
You already have a password set.
<a onclick="document.getElementById('contact_password_noedit').style.display = 'none'; document.getElementById('contact_password_edit').style.display = 'block'; document.getElementById('contact_password').focus(); return false;" href="#">Click here to change it</a>.
</div>
<div id="contact_password_edit" style="display: none">
<ss:forms:password id="contact_password" datacolumn="contact_password" />
</div>
</ss:logic:if>
<ss:logic:else>
<ss:forms:password id="contact_password" datacolumn="contact_password" />
</ss:logic:else>
</ss:forms:row>
<ss:forms:row description="Enter a name that other users can identify you by." label="Display Name">
<ss:forms:editbox id="contact_username" value="\Components\Customers\Contacts::currentSuggestUsername()" parse="value" datacolumn="contact_username" />
</ss:forms:row>

<ss:forms:row label="Type">
<ss:ajax:event id="contact_type_ajaxevent" updatecontrols="contact_type_ajaxregion" />
<ss:forms:radiobutton id="contact_type_individual" onclickajax="contact_type_ajaxevent" datacolumn="contact_type" name="contact_type" label="Individual" valuechecked="Individual" value="Individual" />&nbsp;
<ss:forms:radiobutton id="contact_type_company" onclickajax="contact_type_ajaxevent" datacolumn="contact_type" name="contact_type" label="Company" valuechecked="Company" value="Individual" />
</ss:forms:row>

<ss:ajax:region id="contact_type_ajaxregion">
<ss:logic:if test="$contact_type_individual.checked" evaluateat="render">
<ss:forms:row label="First and Last Name">
<ss:forms:combobox id="contact_title" title="Title" value="" datacolumn="contact_title">
<ss:forms:option value="" selected="" />
<ss:forms:option value="Mr.">Mr.</ss:forms:option>
<ss:forms:option value="Mrs.">Mrs.</ss:forms:option>
<ss:forms:option value="Miss">Miss</ss:forms:option>
<ss:forms:option value="Ms.">Ms.</ss:forms:option>
<ss:forms:option value="Dr.">Doctor</ss:forms:option>
</ss:forms:combobox>
<ss:forms:editbox id="contact_first_name" datacolumn="contact_first_name" width="100" placeholder="First name" />
<ss:forms:editbox id="contact_last_name" datacolumn="contact_last_name" width="120" placeholder="Last name" />
</ss:forms:row>
</ss:logic:if>
<ss:logic:else>
<ss:forms:row label="Company">
<ss:forms:editbox id="contact_company" datacolumn="contact_company" />
</ss:forms:row>
<ss:forms:row label="Company Number">
<ss:forms:combobox id="contact_company_number_type" datacolumn="contact_company_number_type" datasource="\Framework\I18N\CompanyTypes::getAll()" as="companytype" datavalue="$companytype['company_number_type']" datatitle="$companytype['company_number_type']">
<ss:forms:option value=""></ss:forms:option>
</ss:forms:combobox>
<ss:forms:editbox id="contact_company_number" datacolumn="contact_company_number" />
</ss:forms:row>
</ss:logic:else>
</ss:ajax:region>

<ss:logic:variable value="\Framework\HTTP\Request::getCountryCodeFromIP()" parsenow="value" as="ipcountry" />
<ss:forms:row description="Street Address" label="Address">
<ss:forms:textarea id="contact_address" datacolumn="contact_address" rows="2" maxlength="30" />
</ss:forms:row>
<ss:forms:row label="Suburb / City">
<ss:forms:editbox id="contact_suburb_city" datacolumn="contact_suburb_city" />
</ss:forms:row>
<ss:forms:row label="Postcode">
<ss:forms:editbox id="contact_postcode" datacolumn="contact_postcode" width="80" />
</ss:forms:row>
<ss:forms:row label="State">
<ss:forms:editbox id="contact_state" datacolumn="contact_state" autocompletedatasource="\Framework\I18N\Countries::getStateTitlesFlat($ipcountry)" />
</ss:forms:row>
<ss:forms:row label="Country">
<ss:forms:combobox id="country_id" value="$ipcountry" parsenow="value" as="country" datacolumn="country_id" datasource="\Framework\I18N\Countries::getAll()" datatitle="$country['country_title']" datavalue="$country['country_id']" />
</ss:forms:row>
<ss:forms:row label="Home Phone">
<ss:forms:editbox id="contact_phone_home" datacolumn="contact_phone_home" />
</ss:forms:row>
<ss:forms:row label="Work Phone">
<ss:forms:editbox id="contact_phone_work" datacolumn="contact_phone_work" />
</ss:forms:row>
<ss:forms:row label="Mobile Phone">
<ss:forms:editbox id="contact_phone_mobile" datacolumn="contact_phone_mobile" />
</ss:forms:row>
<ss:forms:row label="Gender">
<ss:forms:radiobutton id="contact_gender_m" label="Male" datacolumn="contact_gender" name="contact_gender" valuechecked="m" />&nbsp;
<ss:forms:radiobutton id="contact_gender_f" label="Female" datacolumn="contact_gender" name="contact_gender" valuechecked="f" />
</ss:forms:row>
<ss:forms:row description="Format: DD / MM / YYYY" label="Date of Birth">
<ss:forms:editbox id="contact_dob_d" value="substr($contact['contact_dob'], 8)" parse="value" datacolumn="contact_dob_d" width="50" />&nbsp;/
<ss:forms:editbox id="contact_dob_m" value="substr($contact['contact_dob'], 5, 2)" parse="value" datacolumn="contact_dob_m" width="50" />&nbsp;/
<ss:forms:editbox id="contact_dob_y" value="substr($contact['contact_dob'], 0, 4)" parse="value" datacolumn="contact_dob_y" width="80" />
</ss:forms:row>
<ss:forms:row label="Company Name">
<ss:forms:editbox id="contact_company" datacolumn="contact_company" />
</ss:forms:row>
<ss:synergy8:customfieldsrenderer parsenow="fields" fields="\Components\Customers\Contacts::fieldsCustomGetAllExt(true)" />
<div class="text-center margin-top20"><ss:forms:submitbutton value="Submit" /></div>
</ss:forms:form>
</ss:forms:dialogbox>
<ss:templates:row class="margin-top40">
<ss:templates:column width="3" class="text-center">
<ss:logic:if test="$contact['contact_picture']">
<ss:standard:image src="'/media/customers_contacts/' + $contact['contact_id'] + '/' + $contact['contact_picture']" alt="" width="200" height="200" maintainaspect="true" parsenow="src" class="img-circle"/>
</ss:logic:if>
<ss:logic:else>
<ss:standard:image src="/2019-test/student-profile/our-team-male.jpg" alt="default image" width="200" height="200" maintainaspect="true" class="img-circle"/>
</ss:logic:else>
<br/>
<ss:standard:link opendialogid="edit_profile" class="turquoiseborder margin-top20">Edit your profile</ss:standard:link>


</ss:templates:column>
<ss:templates:column width="9">
<h3>
Bonjour
<ss:logic:if test="$contact['contact_first_name']">[? $contact['contact_first_name'] ?]</ss:logic:if>
</h3>
<h4>Welcome to the Alliance Française</h4>
<br/>
<p>Your email: [? $contact['contact_email'] ?]</p>
</ss:templates:column>
</ss:templates:row>

<hr/>
<h3 class="text-center">Your upcoming classes</h3>

<hr/>

<ss:logic:variable value="\Components\AF\Courses::getAll()" datafilter="array(array('product_id', '=' , '5'))" parsenow="value,datafilter" as="course"/>
[? varDump($course) ?]
<hr/>

<ss:logic:variable value="getcourses()" as="course2"/>
[? varDump($course2) ?]
<hr/>

<ss:data:repeater as="contactSale" emptymessage="No previous sales found." datasource="getAllContactSales()">
<p>[? $contactSale['sale_id'] ?]</p>
<ss:data:repeater as="contactSaleItem" emptymessage="No previous sales found." datasource="\Components\Commerce\Sales\Items::getAllForSale($contactSale['sale_id'])" >
<p>[? $contactSaleItem['sale_item_id'] ?], [? $contactSaleItem['sale_item_title'] ?], productID = [? $contactSaleItem['product_id'] ?]</p>

</ss:data:repeater>

</ss:data:repeater>

</ss:logic:if>
Content Additional:

															

														
Css:

															

														
Js:

															

														
Accept Child 404:
0
0
Search Title:

															

														
Search Title Prefix:

															

														
Search Description:

															

														
Search Keywords:

															

														
Search Noindex:
0
0
Search Nofollow:
0
0
Search Change Frequency:

															

														
Search Priority:
0.5
0.5
Search Canonical Override:

															

														
Is Offline:
0
0
Is Hidden In Navigation:
1
1
Is Hidden In Sitemap:
1
1
Security New:
0
0
Security Contact Mode:

															

														
Security Contact Squeeze Viewlimit:

															

														
Security Contact Require Login:

															

														
Security Contact Groups:

															

														
Security Condition Id:

															

														
Security Heading:

															

														
Security Description:

															

														
Other Fields:

															

														
Order:
6
6
Parent Id:
/2019-test/
/2019-test/
Contact Id:
0
0
Design Id:
7
7
Header Functions:

															

														
Header Category:

															

														
Is Domain:
0
0