Hi,
I've been mucking around for this for awhile, and tried a few different ways.. now i think I am not far off but I need a little bit of a nudge in the right direction..
I have set up a group of ambassadors in a (form) i think!!!
Ok so I have 3 checkboxes at the bottom called logged , quoted, completed.. I need to somehow tally these results into a ladder format... ie. name only shown once in ladder, then a column next to it with the tallied up results for logged | quoted | completed.. Similar to the below.
Ok so far I have setup the backend with the below code:
And the ladder page, has this section:
Ok so I know the code will do nothing.. I'm guessing I need something like a if and else statement, but I am unsure where or what would work..
Any help would be greatly appreciated, kind of stuck!
Thanks for any help!
I've been mucking around for this for awhile, and tried a few different ways.. now i think I am not far off but I need a little bit of a nudge in the right direction..
I have set up a group of ambassadors in a (form) i think!!!
Ok so I have 3 checkboxes at the bottom called logged , quoted, completed.. I need to somehow tally these results into a ladder format... ie. name only shown once in ladder, then a column next to it with the tallied up results for logged | quoted | completed.. Similar to the below.
Ok so far I have setup the backend with the below code:
- Code: Select all
<?php require_once( '../admin/cms.php' ); ?>
<cms:template title='Leads' clonable='1'>
<cms:editable type='text' label='Prospect Name' name='prospect' order='1' />
<cms:editable name='name' label='Ambassador Name' desc='Please Select Ambassador' required='1' type='dropdown' opt_values="<cms:pages masterpage='ambassadors/index.php'><cms:show name /> |</cms:pages>" order='2' />
<cms:editable name='image' label='Ambassador Image' width='75' height='75' crop='1' show_preview='1' preview_width='75' type='image' order='3'/>
<cms:editable type='text' label='Account Manager' name='manager' order='4' />
<cms:editable type='text' label='Date Logged' name='date' order='5' />
<cms:editable name="progress" label="Progress" desc="Select one from these" opt_values='logged | contacted | meeting | presentation | quote' type='dropdown' order='6'/>
<cms:editable type='checkbox' opt_values='logged=1' label='Has the lead been logged?' name='logged' order='7' />
<cms:editable type='checkbox' opt_values='quoted=1' label='Has the lead been quoted?' name='quoted' order='8' />
<cms:editable type='checkbox' opt_values='completed=1' label='Has the lead been completed?' name='completed' order='9' />
</cms:template>
<?php COUCH::invoke(); ?>
And the ladder page, has this section:
- Code: Select all
<table class="table table-striped">
<tr>
<th></th>
<th>Ambassador</th>
<th>Leads Logged</th>
<th>Leads Completed</th>
</tr>
<cms:pages masterpage='leads/index.php' custom_field='logged'>
<tr>
<td><img src="<cms:show image />" width="50px" alt=""></td>
<td><cms:show name /></td>
<td><sms:show logged /></td>
<td><cms:show completed /></td>
</tr>
</cms:pages>
</table>
Ok so I know the code will do nothing.. I'm guessing I need something like a if and else statement, but I am unsure where or what would work..
Any help would be greatly appreciated, kind of stuck!

Thanks for any help!