简体   繁体   中英

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? 1) The first step: When users click to button, form data send in admin panel saved and send email manager. 2) The second step: The manager can export data in excel, view tables. 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 . Also, consider these libraries PHPExcel , Libraries API , PHP 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).

Have a look at the Simple Table of States example, and think of it as the equivalent of your "data to be saveds". 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).

Checkout Forena's Community Documentation for (way) more details, and/or the documentation that comes with the module .

Why not good old webform module:

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. Basically everything you need in one module, stable and widely used.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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