{title help="Spreadsheet"}{$title}{/title}

{$description|escape}

{if ($mode eq 'graph')}

{tr}Select Graphic Type{/tr}

Pie Chart
Multiline
Multibar
Bar Stack
{if $haspdflib or $hasps}
{if $haspdflib} {/if} {if $hasps} {/if}
{/if} {if $hasgd}
{/if}
{/if} {if ($mode eq 'param')} {jq} {literal} function renderWikiPlugin() { var div = document.getElementById( 'plugin-desc' ); var params = [ _renVal( 'id', 'sheetId' ), _renVal( 'type', 'graphic' ), _renVal( 'format', 'format' ), _renVal( 'orientation', 'orientation' ), {/literal} {if $showgridparam} _renValRad( 'independant', 'independant' ), _renValRad( 'vertical', 'vertical' ), _renValRad( 'horizontal', 'horizontal' ), {/if} {section name=i loop=$series} _renVal( '{$series[i]}', 'series[{$series[i]}]' ), {/section} {literal} _renVal( 'width', 'width' ), _renVal( 'height', 'height' ) ]; div.innerHTML = "{CHART(" + params.join( ", " ) + ")}" + document.chartParam.title.value + "{CHART}"; } function _renVal( dest, control ) { var val = document.chartParam[control].value; if( val.indexOf( "," ) != -1 ) return dest + '=>"' + val + '"'; else return dest + '=>' + val; } function _renValRad( name ) { var rads = document.chartParam[name]; for( i = 0; rads.length > i; i++ ) if( rads[i].checked ) return name + '=>' + rads[i].value; } {/literal} {/jq}
{if $showgridparam}
{/if}
{tr}Series:{/tr}
{section name=i loop=$series}
{/section}
{$dataGrid}
{button _id="edit_button" _text="{tr}Edit Spreadsheet{/tr}" _htmlelement="role_main" _template="tiki-view_sheets.tpl" parse="edit" _auto_args="*" _class="" _onclick="document.location = 'tiki-view_sheets.php?sheetId=$sheetId&parse=edit'; return false;"} {button href="tiki-sheets.php" _class="btn-info" _text="{tr}List Spreadsheets{/tr}"}

{tr}Wiki plug-in{/tr}

{/if}