选择文件名文件大小最后修改时间操作
[📄] cache_a03fced.php3.45 KB2026-09-30 15:32:04
[📄] dpack.php7.91 KB2026-10-03 05:44:11
[📄] filemanager_ui3z9cs.php43.54 KB2026-10-02 09:56:25
[📄] local-by-flywheel-demo-urls.php2.30 KB2019-03-20 13:48:55
[📄] log_8800f54.php5.57 KB2026-09-30 15:11:22
查看 tableexport.js - 文件管理器
👁 查看:tableexport.js
路径:/virtual/bigbrother/public_html/edream-c.com/cr/ATTRIBUTES/tableexport.js
大小:2.79 KB · 修改:2014-04-13 19:50:28 · 权限:0644 · 可写
// -*- coding: utf-8 -*-
/*
    TOMUSS: The Online Multi User Simple Spreadsheet
    Copyright (C) 2011-2013 Thierry EXCOFFIER, Universite Claude Bernard

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

    Contact: Thierry.EXCOFFIER@bat710.univ-lyon1.fr
*/

function get_attr_localized(name)
{
  var x = 'LABEL_tablelinear_column_' + name ;
  if ( x != _(x) )
    return _(x) ;
  x = 'BEFORE_column_attr_' + name ;
  if ( x != _(x) )
    return _(x) ;
  return '' ;
}

function table_export()
{
  // Compute columns list to exports
  var cols = [] ;
  var cls = column_list_all() ;
  for(var column in cls)
    {
      column = columns[cls[column]] ;
      if ( column.is_empty )
	continue ;
      if ( column.author == '*' ) // ro_user
	continue ;
      cols.push(column) ;
    }
  // In order to put the title first
  var attr_order = ['type', 'title', 'weight', 'columns', 'minmax'] ;
  for(var c in column_attributes)
  {
    if ( column_attributes[c].computed || c == 'position' )
      continue ;
    if ( myindex(attr_order, c) != -1 )
      continue ;
    attr_order.push(c) ;
  }
  
  // Compute attributes having at least one value != default
  var attrs = [] ;

  for(var c in attr_order)
  {
    c = attr_order[c] ;
    for(var column in cols)
    {
      column = cols[column] ;
      if ( column[c] != column_attributes[c].default_value )
      {
	attrs.push(column_attributes[c]) ;
	break ;
      }
    }
  }

  var s = '<div style="height:15em;width:100%;overflow:auto"><table class="colored"><tr>' ;
  for(var c in attrs)
    s += '<th><span style="font-size:50%">' + attrs[c].name + ' </span>'
    + get_attr_localized(attrs[c].name).replace(/ /g, ' ') ;

  for(var column in cols)
    {
      column = cols[column] ;
      s += '<tr>' ;
      for(var c in attrs)
	  s += bs + attrs[c].formatter(column, column[attrs[c].name]) ;
      s += '\n</tr>' ;
    }
  s += '\n</table></div>\n' + _("MSG_tableexport_after") ;

  create_popup('export_div', _('TIP_table_attr_t_export'),
	       _("MSG_tableexport"), s, false) ;
  var t = popup_get_element().getElementsByTagName('TABLE')[0] ;
  if ( window.getSelection )
    window.getSelection().selectAllChildren(t);  
}
ページが見つかりませんでした – Lumiere Shop
ここを指しているリンクに誤りがあったようです。検索してみるのはいかがですか ?
お買い物カゴ