def proc_rheader(r):
 if (r.representation == 'html'):
  plan = r.record
  if plan:
   T = current.T
   tabs = [(T('Edit Details'), None), (T('Items'), 'plan_item')]
   rheader_tabs = s3_rheader_tabs(r, tabs)
   table = r.table
   rheader = DIV(TABLE(TR(TH(('%s: ' % table.site_id.label)), table.site_id.represent(plan.site_id)), TR(TH(('%s: ' % table.order_date.label)), table.order_date.represent(plan.order_date)), TR(TH(('%s: ' % table.eta.label)), table.eta.represent(plan.eta)), TR(TH(('%s: ' % table.shipping.label)), table.shipping.represent(plan.shipping))), rheader_tabs)
   return rheader
 return None

def proc_rheader ( r ) : if ( r . representation == 'html' ) : plan = r . record if plan : T = current . T tabs = [ ( T ( 'Edit Details' ) , None ) , ( T ( 'Items' ) , 'plan_item' ) ] rheader_tabs = s3_rheader_tabs ( r , tabs ) table = r . table rheader = DIV ( TABLE ( TR ( TH ( ( '%s: ' % table . site_id . label ) ) , table . site_id . represent ( plan . site_id ) ) , TR ( TH ( ( '%s: ' % table . order_date . label ) ) , table . order_date . represent ( plan . order_date ) ) , TR ( TH ( ( '%s: ' % table . eta . label ) ) , table . eta . represent ( plan . eta ) ) , TR ( TH ( ( '%s: ' % table . shipping . label ) ) , table . shipping . represent ( plan . shipping ) ) ) , rheader_tabs ) return rheader return None
resource header for procurements .