<?php /** * @file * Template for rendering an individual component's analysis data. * * Available variables: * - $component: The component whose analysis is being rendered. * - $component_analysis: A renderable containing this components analysis. * - $data: An array of array containing the analysis data. Contains the keys: * - table_header: If this table has more than a single column, an array * of header labels. * - table_rows: If this component has a table that should be rendered, an * array of values */ ?> <div class="<?php print $classes; ?> "> <div class="webform-analysis-component-inner"> <h3><?php print check_plain($component['name']); ?> </h3> <?php print backdrop_render_children($component_analysis); ?> </div> </div>
* * The $form array contains two main pieces: * - $form['submitted']: The main content of the user-created form. * - $form['details']: Internal information stored by Webform. * * If a preview is enabled, these keys will be available on the preview page: * - $form['preview_message']: The preview message renderable. * - $form['preview']: A renderable representing the entire submission preview. */ // Print out the progress bar at the top of the page print backdrop_render($form['progressbar']); // Print out the preview message if on the preview page. if (isset($form['preview_message'])) { print '<div class="messages warning">'; print backdrop_render($form['preview_message']); print '</div>'; } $will_you_be_attending_options = backdrop_render($form['submitted']['will_you_be_attending']['yes']) . backdrop_render($form['submitted']['will_you_be_attending']['no']); $will_you_be_attending_label = preg_replace("/<\\/div>/", "", backdrop_render($form['submitted']['will_you_be_attending'])); $will_you_be_attending = $will_you_be_attending_label . $will_you_be_attending_options . '</div>'; // Print out the main part of the form. // Feel free to break this up and move the pieces within the array. print $will_you_be_attending; print backdrop_render($form['submitted']['name']); print backdrop_render($form['submitted']['email_address']); print backdrop_render($form['submitted']['additional_people']); print backdrop_render($form['submitted']); // Always print out the entire $form. This renders the remaining pieces of the // form that haven't yet been rendered above (buttons, hidden elements, etc). print backdrop_render_children($form);
<?php /** * @file * Customize the display of a webform submission. * * Available variables: * - $node: The node object for this webform. * - $submission: The Webform submission array. * - $email: If sending this submission in an e-mail, the e-mail configuration * options. * - $format: The format of the submission being printed, either "html" or * "text". * - $renderable: The renderable submission array, used to print out individual * parts of the submission, just like a $form array. */ ?> <?php print backdrop_render_children($renderable);
* - $node: The node object for this webform. * - $component: If a single components analysis is being printed, this will * contain a Webform component. Otherwise all components are having their * analysis printed on the same page. * - $analysis: A renderable object containing the following children: * - 'form': A form for selecting which components should be included in the * analysis. * - 'data': An render array of analysis results for each component enabled. */ ?> <div class="webform-analysis"> <?php print backdrop_render($analysis['form']['help']); ?> <div class="webform-analysis-data"> <?php print backdrop_render($analysis['data']); ?> </div> <?php print backdrop_render($analysis['form']); ?> <?php /* Print out any remaining part of the renderable. */ ?> <?php print backdrop_render_children($analysis); ?> </div>