简体   繁体   English

如何在Drupal 7中创建表单,在管理面板中保存数据并在excel中导出数据?

[英]How to create form in Drupal 7 with save data in admin panel and export data in excel?

I need your help. 我需要你的帮助。 How to create form in Drupal 7 with save data in admin panel and export data in excel? 如何在Drupal 7中创建表单,在管理面板中保存数据并在excel中导出数据? 1) The first step: When users click to button, form data send in admin panel saved and send email manager. 1)第一步:当用户点击按钮时,在管理面板中发送表格数据保存并发送电子邮件管理器。 2) The second step: The manager can export data in excel, view tables. 2)第二步:经理可以在excel中导出数据,查看表格。 Maybe have the ready module? 也许有准备好的模块? Thank you very much. 非常感谢你。

Try Excel data export and build your features onto it if you understand how to create Drupal modules . 如果您了解如何创建Drupal模块,请尝试Excel数据导出并在其上构建您的功能。 Also, consider these libraries PHPExcel , Libraries API , PHP Export Data 另外,请考虑这些库PHPExcelLibraries APIPHP Export Data

You could use the Forena module (disclosure: I'm a co-maintainer of it), and produce all sorts of output formats (CSV, XLS, XML, JSON, etc). 您可以使用Forena模块(披露:我是它的共同维护者),并生成各种输出格式(CSV,XLS,XML,JSON等)。

Have a look at the Simple Table of States example, and think of it as the equivalent of your "data to be saveds". 看一下Simple Table of States示例,并将其视为“要保存的数据”的等价物。 And note the hyperlinks in the upper right, which are: 并注意右上角的超链接,它们是:

Try any of these links to get the equivalent of the extracted information, but in the format you requested (there or other supported formats such as PDF, DOC, JSON, etc). 尝试使用这些链接中的任何一个获取相应的提取信息,但是采用您请求的格式(有PDF或DOC,JSON等其他支持的格式)。

Checkout Forena's Community Documentation for (way) more details, and/or the documentation that comes with the module . 查看Forena的社区文档以获取更多详细信息和/或模块随附文档

Why not good old webform module: 为什么不好旧的webform模块:

https://www.drupal.org/project/webform https://www.drupal.org/project/webform

It provides easy to understand interface for creating/editing webforms, it stores results, can send notification emails, can export results in Excel and other popular formats. 它提供易于理解的界面,用于创建/编辑webforms,它存储结果,可以发送通知电子邮件,可以导出Excel和其他流行格式的结果。 Basically everything you need in one module, stable and widely used. 基本上你需要在一个模块中的一切,稳定和广泛使用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM