Changeset 2240 for plugins/pollsFactory/inc
- Timestamp:
- 05/13/10 20:19:47 (13 years ago)
- Location:
- plugins/pollsFactory/inc
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/pollsFactory/inc/class.pollsfactory.chart.php
r2139 r2240 182 182 } 183 183 } 184 # Lo pp through options184 # Loop through options 185 185 $selections_params['option_type'] = 'pollsselection'; 186 186 $selections_params['post_id'] = $poll_id; … … 191 191 $key = (integer) $selections->option_id; 192 192 # Set bars with no responses 193 $opt[$key] = $selections->option_title;194 193 if (!isset($chd[$key])) { 195 194 $chd[$key] = 0; 196 195 } 197 196 # Bar title 198 $chxl[$key] = $selections->option_title; 199 } 197 $chxl[$key] = html::escapeHTML($selections->option_title); 198 } 199 # Sort every tables to preserve title/responses 200 ksort($chd);ksort($chxl); 201 array_multisort($chd,$chxl); 202 krsort($chd);ksort($chxl); 203 200 204 # go go go 201 205 $data = array(); -
plugins/pollsFactory/inc/index.content.php
r2139 r2240 500 500 ); 501 501 } 502 echo '</div>'.dcPage::helpBlock('pollsFactory').$footer.'</body></html>'; 502 echo '</div>'; 503 dcPage::helpBlock('pollsFactory'); 504 echo $footer.'</body></html>'; 503 505 504 506 function addpollForm($section,$title,$poll_id,$query_id,$selection_id,$submit,$action,$content,$tabindex=2,$accesskey='',$sidebar=false) -
plugins/pollsFactory/inc/index.poll.php
r2140 r2240 38 38 $can_delete = false; 39 39 40 $post_headlink = '<link rel="%s" title="%s" href=" post.php?id=%s" />';40 $post_headlink = '<link rel="%s" title="%s" href="'.$p_url.'&tab=poll&id=%s" />'; 41 41 $post_link = '<a href="'.$p_url.'&tab=poll&id=%s" title="%s">%s</a>'; 42 42 -
plugins/pollsFactory/inc/index.setting.php
r2139 r2240 147 147 form::hidden(array('action'),'savesetting').' 148 148 </p></div> 149 </form> 150 '.dcPage::helpBlock('pollsFactory').$footer.'</body></html>'; 149 </form>'; 150 dcPage::helpBlock('pollsFactory'); 151 echo $footer.'</body></html>'; 151 152 ?>
Note: See TracChangeset
for help on using the changeset viewer.